Update background tasks

This commit is contained in:
2023-01-16 11:49:21 +01:00
parent 525e33cdd6
commit 5431f65c79
2 changed files with 3 additions and 3 deletions

View File

@@ -29,8 +29,9 @@ class WorkerSettings:
on_startup = startup
on_shutdown = shutdown
redis_settings = get_redis_settings()
max_jobs = 2
max_jobs = 1
max_tries = 1
job_timeout = 10 * 60
job_serializer = msgpack.packb
job_deserializer = lambda b: msgpack.unpackb(b, raw=False) # noqa: E731
expires_extra_ms = 7 * 24 * 60 * 1000