feat: docker & startup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user