File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
services/web/server/src/simcore_service_webserver/garbage_collector Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ async def _cleanup_ctx_fun(app: web.Application) -> AsyncIterator[None]:
3939 # Function-exclusiveness is required to avoid multiple tasks like thisone running concurrently
4040 get_redis_lock_manager_client_sdk (app ),
4141 task_interval = interval ,
42- retry_after = interval ,
42+ retry_after = min ( timedelta ( seconds = 10 ), interval / 10 ) ,
4343 )
4444 async def _prune_expired_api_keys_periodically () -> None :
4545 with log_context (_logger , logging .INFO , "Pruning expired API keys" ):
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ async def _cleanup_ctx_fun(app: web.Application) -> AsyncIterator[None]:
3232 # Function-exclusiveness is required to avoid multiple tasks like thisone running concurrently
3333 get_redis_lock_manager_client_sdk (app ),
3434 task_interval = interval ,
35- retry_after = interval ,
35+ retry_after = min ( timedelta ( seconds = 10 ), interval / 10 ) ,
3636 )
3737 async def _collect_garbage_periodically () -> None :
3838 with log_context (_logger , logging .INFO , "Garbage collect cycle" ):
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ async def _cleanup_ctx_fun(app: web.Application) -> AsyncIterator[None]:
2727 # Function-exclusiveness is required to avoid multiple tasks like thisone running concurrently
2828 get_redis_lock_manager_client_sdk (app ),
2929 task_interval = interval ,
30- retry_after = interval ,
30+ retry_after = min ( timedelta ( seconds = 10 ), interval / 10 ) ,
3131 )
3232 async def _prune_trash_periodically () -> None :
3333 with log_context (_logger , logging .INFO , "Deleting expired trashed items" ):
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ async def _cleanup_ctx_fun(app: web.Application) -> AsyncIterator[None]:
7676 # Function-exclusiveness is required to avoid multiple tasks like thisone running concurrently
7777 get_redis_lock_manager_client_sdk (app ),
7878 task_interval = interval ,
79- retry_after = interval ,
79+ retry_after = min ( timedelta ( seconds = 10 ), interval / 10 ) ,
8080 )
8181 async def _update_expired_users_periodically () -> None :
8282 with log_context (_logger , logging .INFO , "Updating expired users" ):
You can’t perform that action at this time.
0 commit comments