feat: docker & startup

This commit is contained in:
2026-06-06 12:30:49 +03:00
parent 93199a3095
commit 63546c1fe3
4 changed files with 44 additions and 5 deletions
+5 -1
View File
@@ -24,8 +24,12 @@ async def shutdown(_ctx: dict[str, Any]) -> None:
log.info("worker_shutdown")
async def _noop(_ctx: dict[str, Any]) -> None:
pass
class WorkerSettings:
functions: ClassVar[list[Any]] = [] # populated as tasks are implemented
functions: ClassVar[list[Any]] = [_noop] # populated as tasks are implemented
on_startup = startup
on_shutdown = shutdown
max_jobs = get_settings().max_parallel_downloads