Skip to content

Commit 6a130b6

Browse files
fix
1 parent 3cfede3 commit 6a130b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/efs-guardian/src/simcore_service_efs_guardian/services/background_tasks_setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def _on_app_startup(app: FastAPI) -> Callable[[], Awaitable[None]]:
1818
async def _startup() -> None:
1919
with (
2020
log_context(_logger, logging.INFO, msg="Efs Guardian background task "),
21-
log_catch(_logger, reraise=True),
21+
log_catch(_logger, reraise=False),
2222
):
2323
app.state.efs_guardian_removal_policy_background_task = None
2424

@@ -34,7 +34,7 @@ async def _periodic_removal_policy_task() -> None:
3434

3535
app.state.efs_guardian_removal_policy_background_task = asyncio.create_task(
3636
_periodic_removal_policy_task(),
37-
name="efs_removal_policy_task",
37+
name=_periodic_removal_policy_task.__name__,
3838
)
3939

4040
return _startup

0 commit comments

Comments
 (0)