Skip to content

Commit

Permalink
patch on behalf of @sanderegg
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Nov 8, 2023
1 parent 3794006 commit 29a3581
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async def _startup() -> None:

def on_app_shutdown(app: FastAPI) -> Callable[[], Awaitable[None]]:
async def _stop() -> None:
await stop_periodic_task(app.state.clusters_cleaning_task)
await stop_periodic_task(app.state.clusters_cleaning_task, timeout=5)

return _stop

Expand Down
2 changes: 1 addition & 1 deletion services/clusters-keeper/tests/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def enabled_rabbitmq(
async def initialized_app(app_environment: EnvVarsDict) -> AsyncIterator[FastAPI]:
settings = ApplicationSettings.create_from_envs()
app = create_app(settings)
async with LifespanManager(app):
async with LifespanManager(app, shutdown_timeout=20):
yield app


Expand Down

0 comments on commit 29a3581

Please sign in to comment.