WorkerConfig¶
- class safir.arq.uws.WorkerConfig(arq_mode, arq_queue_url, arq_queue_password, grace_period, parameters_class, timeout)¶
Bases:
Generic
Minimal configuration needed for building a UWS backend worker.
- Parameters:
Attributes Summary
What mode to use for the arq queue.
Password of the Redis arq queue.
URL of the Redis arq queue.
Redis settings for arq.
How long to wait for workers to shut down before cancelling them.
Class of the parameters to pass to the backend worker.
Maximum execution time.
Attributes Documentation
-
arq_queue_password:
str
|None
= <dataclasses._MISSING_TYPE object>¶ Password of the Redis arq queue.
- arq_redis_settings¶
Redis settings for arq.
-
grace_period:
timedelta
= <dataclasses._MISSING_TYPE object>¶ How long to wait for workers to shut down before cancelling them.
This should be set to somewhat less than the Kubernetes grace period for terminating the pod (about five seconds less, for example).