Angaben zum Datum
Datum aus der Quelle.
Erstmals gesehen am .
Celery Version 5.5.0b3
Celery v5.5.0 Beta 3 führt den Soft Shutdown ein, eine zeitlich begrenzte Warm-Shutdown-Phase zwischen Warm und Cold Shutdown, die über worker_soft_shutdown_timeout aktiviert wird.
Celery v5.5.0 Beta 3 is now available for testing. Please help us test this version and report any issues.
Key Highlights
Soft Shutdown
The soft shutdown is a new mechanism in Celery that sits between the warm shutdown and the cold shutdown. It sets a time limited "warm shutdown" period, during which the worker will continue to process tasks that are already running. After the soft shutdown ends, the worker will initiate a graceful cold shutdown, stopping all tasks and exiting.
The soft shutdown is disabled by default, and can be enabled by setting the new configuration option worker_soft_shutdown_timeout. If a worker is not running any task when the soft shutdown initiates, it will skip the warm shutdown period and proceed directly to the cold shutdown unless the new configuration option worker_enable_soft_shutdown_on_idle is set to True. This is useful for workers that are idle, waiting on ETA tasks to be executed that still want to enable the soft shutdown anyways. …