NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI, #452 most downloaded on PyPI
Distributed Task Queue.
Latest stable
5.7.0
Last release 15 days ago
05 Nov 2026
Release timing varies
gaps range from 2 weeks to 6 months
Some releases are documented
notes for 28 of the last 60 stable releases
2 versions withdrawn
withdrawn after publishing
18 years old
228 releases · first in 2009
Drag across the ruler to compare, or tap a release to open it.
Remove deprecated args from redis get_connection call by @JaeHyuckSa in #10036
__class_getitem__ to generic classes by @brianhelba in #10038TypeError during exception handling by @ChickenBenny in #10178reconnect_on_error to BaseResultConsumer by @ChickenBenny in #10189engine_callback to database backend SessionManager by @avolant in #10135.delay() usage with signatures in the user guide section by @kittywaresz in #10258patching.modules after module test fixture leaks across test cases by @treszkai in #10256Note truncated.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Celery v5.7.0 Alpha 1 is now available for testing. Please help us test this version and report any issues.
Allow Redis backend SSL config with redis:// URLs (#10313)
Add task_repr_maxlevels setting to control argsrepr/kwargsrepr depth (#10371)
Add celery_beat_task header in task options (#9702)
Add runtime to the task-success signal (#9516)
Add the request context to task_failure when a worker is lost (#9720)
Support queue aliases in Queues.deselect() (#10649)
Allow worker_pool_start_method='spawn' with the asynchronous prefork pool (#10584)
Add datefmt support to ColorFormatter/TaskFormatter (#10488)
Enable heartbeat on the event dispatcher connection (#10500)
Propagate chained task failures to the chord body (#10323); fix chord hang when a member is revoked via app.control.revoke (#10527, reworked at #10564)
Fix Signature.clone() sharing kwargs with the original (#10571); fix linked-signature option isolation during deepcopy (#10594)
Task.replace() with a chain containing a group now returns a result instead of hanging (#9604); fix crash with tuple-backed chains (#10626)
Skip empty groups in (eager) chains (#10321, #10644); fix empty group/chain handling in headers (#9772, #10646)
Preserve group errback mutability (#10385); preserve aggregate_duplicates through nested stamp merges
Fix worker consuming unexpected queues, and stalling, after broker reconnect (#10335, #10346)
Fix Consumer.on_close() wiping in-flight reservations, breaking worker_disable_prefetch (#10345)
Detect spawned pool children in process_initializer (#10583); keep a cancelled task unacked when a child reports SystemExit (#10667)
Fix revoked tasks running anyway after mingle merged revoke stamps from another host (#10668)
Bound already-open broker sockets before connection teardown (#10570)
Make result_compression actually compress stored results (#10504); fix Redis result compression with decode_responses (#10612)
Honor a timeout of 0 instead of waiting/polling forever (wait_for, ResultSet.join, get_many, result drainer) (#10487, #10524, #10603)
DatabaseBackend now honors result_serializer (#10536, closes #3025); fix KeyError in MongoDB backend for requestless results (#10503)
Redact SAS tokens / lowercase account keys in the Azure Block Blob backend, and keep it picklable (#10620, #10647)
Cache extension entry-point discovery to fix apply_async CPU overhead (#10516); bound State._tasks_to_resolve to fix unbounded memory growth (#10534)
Handle DST gaps in make_aware; normalize aware datetimes into the schedule timezone in crontab.remaining_delta (#10324, #10420, #10494)
Fix beat sleeping too long / reheap entries that request a later retry (#10558, #10468); fix crontab state restoration across persistence cycles (#10563)
Return the exact fractional utcoffset() instead of rounding it (#10625); preserve negative UTC offsets in LocalTimezone.fromutc (#10519)
ConfigurationView: fix membership checks, map-order lookups, swap_with(), and honor config_from_object(silent=True) on lazy config load (#10586, #10597, #10604, #10532)
Keep preconfigured values out of configuration defaults (#10575); prevent add_defaults() crashing when config_from_object() fails on an already-configured app (#10621)
Mask broker_read_url/broker_write_url and credentials in inspect stats (#10398, #10485)
23 doc fixes/clarifications, including: clarified chord errback signatures (#10300), canvas calling behavior (#10447), acks-late vs. retry semantics (#10448), rate-limit/prefetch interactions (#10291), SQS FIFO message properties (#10446), and numerous grammar/typo fixes across the config and extending guides.
13 test-suite improvements (moving custom-worker tests into the smoke suite, guarding integration tests, pinning Redis client timeouts, etc.) plus 9 CI/tooling updates (CI matrix changes, trying Python 3.15 pre-release, pre-commit autoupdates).
~65 dependency bumps, mostly routine Dependabot/pre-commit updates (pytest, cryptography, boto3/moto, gevent, GitHub Actions like actions/checkout, codeql-action, plus kombu and click-repl version bumps).
Reverted the RabbitMQ 4.3.0 "exclusive queues" default fix (#10289), later replaced with a transient-queue-specific fix (#10290)
Reverted a Redis _pending_messages leak fix and a chord-hang fix, both later reworked
fix(defaults): default to exclusive queues for RabbitMQ 4.3.0 compatibility (#10287)
Revert "fix(defaults): default to exclusive queues for RabbitMQ 4.3.0 compati…" (#10289)
fix(defaults,rpc): RabbitMQ 4.3.0 compatibility for transient queues (#10290)
Removed socket.timeout from reconnection conditions (#10285)
fix(worker): skip Broadcast queues in native delayed delivery binding (#10293)
[pre-commit.ci] pre-commit autoupdate (#10292)
fix(worker): guard heartbeat control command against None event_dispatcher (#10295)
fix(redis): keep _reconnect_pubsub compatible with redis-py < 5.3.0 (#10298)
docs: clarify chord errback signatures (#10300)
Chore(deps): Update python-memcached requirement from >=1.61 to >=1.62 (#10282)
Allow Redis backend SSL config with redis URLs (#10313)
Skip empty groups in chains (#10321)
Handle DST gaps in make_aware (#10324)
Fix worker consuming unexpected queues after connection loss (#10335)
Apply backend retry policy to all DatabaseBackend DB operations (#10334)
Explain prefetching with late acknowledgments (#10343)
Add documentation to workers guide around signal exception bytecode stuff (#10276)
Fix Consumer.on_close() wiping in-flight reservations and breaking worker_disable_prefetch (#10345)
Fix: wrap new-style errback calls in try/except to prevent silent chain halt (#10214)
Fix free worker stalling after broker reconnect (AsynPool.flush clearing _busy_workers) (#10346)
Fix Queues.deselect leaking routing-only queues into consumers (#10348)
fix(redis): prevent _pending_messages memory leak in ResultConsumer (#10342)
chore(deps): bump cryptography in /requirements/extras (#10350)
chore(deps): bump codecov/codecov-action from 6 to 7 (#10349)
docs(tasks): warn that rate-limited tasks block the worker's prefetch (#10291)
Fix add_consumer not restoring consume_from for known queues (#10352)
Fix queue selection by alias to store the real queue name (#10358)
Defer default queue lookup for explicitly routed tasks (#10357)
Fix pidbox consumer cleanup during reset cycles (#10363)
Fix typo (#10365)
Redis ResultConsumer: clean up leaked _pending_messages after on_wait_for_pending (#10366)
Mark rejected tasks as failed when not requeued (#10369)
chore(deps): bump cryptography in /requirements/extras (#10368)
chore(deps): bump actions/checkout from 6 to 7 (#10362)
Update reserved requests to use new event dispatcher on reconnect (#10383)
Tolerate task cancellation errors after connection loss (#10382)
Preserve group errback mutability (#10385)
fix(canvas): propagate chained task failures to the chord body (#10323)
Document task registration requirement for the celery_worker fixture (#10378)
Raise a clear error instead of a bare ValueError when fast_trace_task's worker registry is empty (#10397)
chore(deps): bump actions/setup-python from 6 to 7
Fix preload options for control command (#10403)
Handle UUID task ids in key-value store backend key generation (#10406)
Stop eager chain execution on Ignore and Reject (#10404)
fix(canvas): restore GroupResult fan-out in chain as_tuple() (#8903 regression) (#10408)
Finalize ResultSet barrier when iter_native begins (#10407)
Move custom-worker integration tests to the smoke suite (#10410)
Guard integration tests (#10411)
Handle EPERM from os.kill in multi stopwait node liveness check
Preserve re-buffered events during dispatcher flush (#10401)
Possible secret in repository (#10257)
Fix inconsistencies in systemd service examples (#10425)
docs: describe canvas calling behavior accurately (#10447)
docs: clarify acks late versus retry behavior (#10448)
docs: link worker settings to CLI options (#10445)
Preserve absolute event timestamps in Gossip (#10418)
fix(events): don't drop buffered events appended during publish (#10435)
Respect result_extended in the RPC result backend (#10431)
docs: Fix grammar errors in extending user guide (#10429)
Warn when routing options are set as task attributes
docs: show SQS FIFO message properties directly (#10446)
Replace static analysis hack in __init__.py with TYPE_CHECKING guard (#10409)
RPC result backend recirculates final results on every state poll (#10459)
chore(deps): bump github/codeql-action from 4 to 4.37.4 (#10454)
Move task_sent and Result deprecations to the 6.0 timeline (#10455)
Raise ImproperlyConfigured with install hint when ephem is missing for solar schedules
Normalize aware datetimes into the schedule timezone in crontab.remaining_delta (#10420)
Document EventReceiver's first argument under the name it actually has (#10460)
Reheap beat entries that request to retry later (#10468)
docs: document purpose of bulk_task_producer.py example (#10399)
docs: document single-argument link_error errback used by send_task (#10427)
chore(deps): bump github/codeql-action from 4.37.4 to 4.37.6 (#10469)
Fix shared retry_kwargs mutation in autoretry (#10461)
Add MemoryError regression for request callbacks (#10482)
chore(deps): bump useblacksmith/setup-docker-builder from 1 to 2
chore(deps): bump useblacksmith/setup-docker-builder from 2 to 2.0.1 (#10450)
Remove redundant maybe_signature call in unlock_chord (#10395)
Fix ineffective traceback clearing in timeout handling (#10493)
Fix Redis result consumer redundant unsubscribe (#10497)
Fix green pool autoscale capacity handling (#10361)
fix(worker): mask credentials in alternates returned by inspect stats (#10485)
Add datefmt support to ColorFormatter and TaskFormatter (#10488)
Fix TypeError when slicing a regen built from a generator (#10501)
Update boto3 requirement from >=1.26.143 to >=1.43.6 and moto 5.2 (#10306)
Make result_compression actually compress stored results (#10504)
fix: preserve negative UTC offsets in LocalTimezone.fromutc (Fixes #10517) (#10519)
fix: handle invalid worker environment values (#10513)
Fix certificate expiration during verification (#10510)
Fix KeyError in MongoDB backend for results stored without a request (#10503)
fix: crontab.remaining_delta skips later minute slots on an earlier day (#10494)
Honor a timeout of 0 in wait_for and ResultSet.join instead of waiting forever (#10487)
Mask broker_read_url and broker_write_url in filter_hidden_settings (#10398)
handle beat_cron_starting_deadline correctly for non-uniform crontabs (#10315)
Add task_repr_maxlevels setting to control argsrepr/kwargsrepr depth (#10371)
feature: add celery_beat_task header in task options (#9702)
Enable heartbeat on the event dispatcher connection (#10500)
Update README.rst (#10521)
docs: repoint dead :ref: targets to the getting-help/bug-tracker labels (#10578)
docs(result): drop doubled 'in in' in the ResultSet class comment (#10577)
Document interaction between rate_limit and countdown/eta
Cache extension entry-point discovery to fix apply_async CPU overhead (#10516)
Bound State._tasks_to_resolve to fix unbounded memory growth (#10534)
Fix DjangoTask selection for Celery subclasses without a custom task class (#10529)
Honor a timeout of 0 in get_many instead of polling forever (#10524)
Fix the delay beat returns when the heap top changes (#10531)
Fix: DatabaseBackend now honors result_serializer (#3025) (#10536)
Honour config_from_object(silent=True) on the lazy config load (#10532)
Apply ChainMap._key consistently across its methods (#10545)
[Bug] chord hangs when a member is revoked through app.control.revoke (#10527)
Show original and prefixed keys in configuration KeyError
Forward chord body routing options to chord_unlock (#10442)
Update CI matrix to exclude Python 3.10 and 3.14t (#10550)
Fix beat sleeping too long when is_due changes the heap (#10558)
Fix celery worker shutdown timeout example (#10416)
Fix --detach stalling in Docker containers with high fdmax (#9886) (#10080)
Fix crontab state restoration across persistence cycles (#10563)
Return Option objects consistently from find() (#10565)
Propagate setup logging signal errors (#10568)
Honour broker connection retry settings when purging at startup (#10567)
Fix Signature.clone() sharing kwargs with the original signature (#10571)
fix(worker): bound already-open broker sockets before connection teardown (GH-9705) (#10570)
Document how the Redis broker stores messages (#10566)
prefork is not safe anymore (#10339)
Revert "fix(redis): prevent _pending_messages memory leak in ResultConsumer (…"
Detect spawned pool children in process_initializer (#10583)
Allow worker_pool_start_method='spawn' with the asynchronous prefork pool (#10584)
Keep preconfigured values out of configuration defaults (#10575)
Clean up Docker examples in the contributing guide (#10587)
Honor zero timeouts in the result drainer (#10603)
Make ConfigurationView membership match key lookup (#10586)
Respect map order in ConfigurationView lookups (#10597)
Include _keys in ConfigurationView.swap_with() (#10604)
Retain fallback context managers until exit (#10610)
Preserve explicitly supplied empty timer schedules (#10609)
Fix: query_task doesn't find tasks scheduled with an ETA/countdown (#5321) (#10535)
Fix Redis result compression with decode_responses enabled (#10612)
Docs: add missing @app.task decorator to chain example (#4750) (#10613)
fix(canvas): propagate aggregate_duplicates through nested stamp merges
Deny access to private attributes and dunders via registered() (#10602)
Fix argument forwarding through nested chains in eager execution (#10611)
Replacing a task with a chain which contains a group now returns a result instead of hanging (#9604)
Fix linked signature option isolation during deepcopy (#10594)
Prevent add_defaults() from crashing when config_from_object() fails on an already configured app (#10621)
fix(backends.database): store task children with database backend (#8336) (#10606)
Prevent spawned worker crashes with explicit lazy=True (#10619)
Redact SAS tokens and lowercase account keys in AzureBlockBlobBackend.as_uri (#10620)
Preserve configuration when copying settings (#10623)
docs: fix 'allows to' grammar in dont_autoretry_for docs (#10615)
docs: fix 'Allows to' grammar in configuration settings
Warn when two callables collide under one task name (#10576) (#10598)
Task.replace() crashes with tuple-backed chains (#10626)
Prevent apply_async() from mutating cached execution options (#10624)
Support queue aliases in Queues.deselect() (#10649)
Add runtime in success signal (#9516)
Add the request context to task_failure in case of lost worker (#9720)
Set default max priority in Queues.__setitem__() when the queue has none (#10645)
backends.by_url() should accept backend classes (#10635)
Fix celery multi crashing on a single node name containing a dash (#10643)
Rebuild the GCS storage client after a fork when Firestore is touched first (#10641)
Fix empty group/chain handling in chains and group headers (#9772) (#10646)
try python 3.15 pre release on the CI (#10636)
Keep a cancelled task unacked when the child reports SystemExit (#10667)
Return the exact fractional utcoffset() instead of rounding it (#10625)
Skip empty groups in eager chains (#10644)
Store failures raised as BaseException subclasses with the JSON serializer (#10672)
fix(backends.database): store stamping metadata with extended results (#8887) (#10605)
fix(app.utils): handle multi-server URLs in sanitize_url and bugreport (#8014) (#10607)
Refresh AMQP task routes for all configuration update forms (#10673)
Redis result backend: serialize pubsub access between the drainer and result cleanup (#10671)
Queues.__setitem__() should apply the default routing key (#10669)
Fix revoked tasks running anyway after mingle merged revoke stamps from another host (#10668)
Expect the prefetch reduction to be skipped under per-consumer QoS
Keep the Azure Block Blob backend picklable (#10647)
Update click-repl version to 0.4.0 (#10658)
Update kombu version to 5.7.0a1 (#10677)
Keep a finished result when a revoke arrives for the task (#10679)
Revert "[Bug] chord hangs when a member is revoked through app.control.revoke" (#10564)
Chore(deps): Bump pytest from 9.0.2 to 9.0.3
Chore(deps): Update gevent requirement from >=1.5.0 to >=26.4.0
Chore(deps): Bump pytest-order from 1.3.0 to 1.4.0
Chore(deps): Update elasticsearch requirement from <=9.5.0 to <=9.5.1 (#10685)
Remove deprecated args from redis get_connection call by @JaeHyuckSa in #10036
TypeError during exception handling by @ChickenBenny in #10178reconnect_on_error to BaseResultConsumer by @ChickenBenny in #10189Full Changelog: v5.6.2...v5.6.3
release-date : 2026-03-26 release-by : Tomer Nosrati
Fix Django worker recursion bug + defensive checks for pool_cls.module (#10048)
Docs: Update user_preload_options example to use click. (#10056)
Fix invalid configuration key “bootstrap_servers” in Kafka demo (#10060)
Fix broken images on PyPI page (#10066)
Remove broken reference. (#10071)
Removed –dist=loadscope from smoke tests (#10073)
Docs: Clarify task_retry signal args may be None (#10076)
Update example for Django (#10081)
Make tests compatible with pymongo >= 4.16 (#10074)
fix: source install of cassandra-driver (#10105)
fix: register task cross-reference role in Sphinx extension (#10100)
fix: avoid cycle detection in native delayed delivery (#10095)
fix(asynpool): avoid AttributeError when proc lacks _sentinel_poll (#10086)
fix dusk_astronomical horizon sign (+18 -> -18) (#10121)
Fix/10106 onupdate col use lambda func (#10108)
Fix warm shutdown RuntimeError with eventlet>=0.37.0 (#10083) (#10123)
Fix 10109 db backend connection health (#10124)
Database Backend filter unsupport sql engine arguments with nullpool #7355 (#10134)
fix(beat): correct argument order in Service.reduce (#10137)
ci: declare explicit read-only token permissions in workflow jobs (#10139)
chore: ‘boto3to’ to ‘boto3 to’ (#10133)
Database Backend: Add missing index on date_done (Fixes #10097) (#10098)
docs: fix typo in CONTRIBUTING.rst (#10141)
Refer to Flower / Prometheus for monitoring (#10140)
docs: remove duplicated words in broker and routing docs (#10146)
docs: fix stale version reference and grammar in README (#10145)
docs: fix wording in Celery 5.3 worker pool notes (#10149)
docs: fix duplicated wording in 3.1 changelog entry (#10152)
docs: fix changelog typo in context manager wording (#10144)
Fix/10096 worker fails to reconnect after redis failover (#10151)
Improve on_after_finalize signal documentation (#10155)
Add non-commutative example to clarify partial arg ordering in canvas docs (#10157)
Remove redundant test_isa_mapping test (fixes #10077) (#10103)
Upgrade pytest-celery to >=1.3.0 and adopt PYTEST_CELERY_PKG build arg (#10162)
Remove deprecated args from redis get_connection call (#10036)
Fix #6912 rpc backend reconnection error (#10179)
Fix NameError with TYPE_CHECKING annotations on Python 3.14+ (PEP 649) (#10165)
docs: Add elaboration on prefetch multiplier settings (worker_prefetch_multiplier) and worker_eta_task_limit (#10181)
Fix O(K²) message bloat in a chain of chords (#10171)
Fix mock connection interfaces to prevent TypeError during exception handling (#10178)
fix(trace): dispatch chain/callbacks on dedup fast-path for redelivered tasks (#10159)
Extract reconnect_on_error to BaseResultConsumer (#10189)
pep 649 (#10187)
Fix#9722 friendly status errors for CLI (#10190)
docs: clarify after_return behavior for retried tasks (#10192)
Add compression header to message protocol docs (#10156)
docs: fix duplicated word in bootsteps comment (#10153)
Remove outdated autoreloader section from extending docs (#10154)
Fix: prioritize request ignore_result over task definition (#10184)
fix: clear the timer while catch the exception (#10218)
Prepare for release: v5.6.3 (#10221)
Fix recursive WorkController instantiation in DjangoWorkerFixup + AttributeError when pool_cls is a string by @bruunotrindade in #10045
Full Changelog: v5.6.1...v5.6.2
Fix recursive WorkController instantiation in DjangoWorkerFixup + AttributeError when pool_cls is a string (#10045)
Bugfix: Revoked tasks now immediately update backend status to REVOKED (#9869)
Prepare for release: v5.6.2 (#10049)
Fix Redis Sentinel ACL authentication support by @anthonykuzmich7 in #10013
result_extended vs periodic task metadata and show headers["periodic_task_name"] example by @SpaceShaman in #10030Full Changelog: v5.6.0...v5.6.1
Fix Redis Sentinel ACL authentication support (#10013)
Fix: Broker heartbeats not sent during graceful shutdown (#9986)
docs #5410 -- Document confirm_publish broker transport option (#10016)
close DB pools only in prefork mode (#10020)
Fix: Avoid unnecessary Django database connection creation during cleanup (#10015)
reliable prefork detection (#10023)
better coverage (#10029)
Docs: clarify result_extended vs periodic task metadata and show headers["periodic_task_name"] example (#10030)
Stop importing pytest_subtests (#10032)
Only use exceptiongroup backport for Python < 3.11 (#10033)
Prepare for release: v5.6.1 (#10037)
Security Fix: Broker Credential Leak Prevention
Celery v5.6.0 is now available.
See What's new in Celery 5.6 for a complete overview or read the main highlights below.
Celery 5.6.0 drops support for Python 3.8 (EOL). The minimum required Python version is now 3.9. Users still on Python 3.8 must upgrade their Python version before upgrading to Celery 5.6.0.
Additionally, this release includes initial support for Python 3.14.
pycurl from urllib3The switch from pycurl to urllib3 for the SQS transport (introduced in Celery 5.5.0 via Kombu) has been reverted due to critical issues affecting SQS users.
Contributed by @auvipy in #9620.
Fixed a security issue where broker URLs containing passwords were being logged in plaintext by the delayed delivery mechanism. Broker credentials are now properly sanitized in all log output.
Contributed by @giancarloromeo in #9997.
Two significant memory leaks have been fixed in this release:
Exception Handling Memory Leak: Fixed a critical memory leak in task exception handling that was particularly severe on Python 3.11+ due to enhanced traceback data. The fix properly breaks reference cycles in tracebacks to allow garbage collection.
Contributed by @jaiganeshs21 in #9799.
Pending Result Memory Leak: Fixed a memory leak where AsyncResult subscriptions were not being cleaned up when results were forgotten.
Contributed by @tsoos99dev in #9806.
New configuration option worker_eta_task_limit to prevent out-of-memory crashes when workers fetch large numbers of ETA or countdown tasks. Previously, workers could exhaust available memory when the broker contained many scheduled tasks.
Example usage:
app.conf.worker_eta_task_limit = 1000Contributed by @sashu2310 in #9853.
New configuration options allow specifying the queue type and exchange type when Celery auto-creates missing queues. This is particularly useful for RabbitMQ users who want to use quorum queues with auto-created queues.
Configuration options:
task_create_missing_queue_type: Sets the queue type for auto-created queues (e.g., quorum, classic)task_create_missing_queue_exchange_type: Sets the exchange type for auto-created queuesExample usage:
app.conf.task_create_missing_queue_type = 'quorum'Contributed by @ghirailghiro in #9815.
Full Changelog: v5.6.0rc2...v5.6.0
Celery v5.6.0 is now available.
See whatsnew-5.6 for a complete overview or read the main highlights below.
Celery 5.6.0 drops support for Python 3.8 (EOL). The minimum required Python version is now 3.9. Users still on Python 3.8 must upgrade their Python version before upgrading to Celery 5.6.0.
Additionally, this release includes initial support for Python 3.14.
The switch from pycurl to urllib3 for the SQS transport (introduced in Celery 5.5.0 via Kombu) has been reverted due to critical issues affecting SQS users:
Processing throughput dropped from ~100 tasks/sec to ~3/sec in some environments
UnknownOperationException errors causing container crash loops
Silent message processing failures with no error logs
Users of the SQS transport must ensure pycurl is installed. If you removed pycurl after upgrading to Celery 5.5.0, you will need to reinstall it.
Contributed by @auvipy in #9620.
Fixed a security issue where broker URLs containing passwords were being logged in plaintext by the delayed delivery mechanism. Broker credentials are now properly sanitized in all log output.
Contributed by @giancarloromeo in #9997.
Two significant memory leaks have been fixed in this release:
Exception Handling Memory Leak: Fixed a critical memory leak in task exception handling that was particularly severe on Python 3.11+ due to enhanced traceback data. The fix properly breaks reference cycles in tracebacks to allow garbage collection.
Contributed by @jaiganeshs21 in #9799.
Pending Result Memory Leak: Fixed a memory leak where AsyncResult subscriptions were not being cleaned up when results were forgotten.
Contributed by @tsoos99dev in #9806.
New configuration option worker_eta_task_limit to prevent out-of-memory crashes when workers fetch large numbers of ETA or countdown tasks. Previously, workers could exhaust available memory when the broker contained many scheduled tasks.
Example usage:
app.conf.worker_eta_task_limit = 1000
Contributed by @sashu2310 in #9853.
New configuration options allow specifying the queue type and exchange type when Celery auto-creates missing queues. This is particularly useful for RabbitMQ users who want to use quorum queues with auto-created queues.
Configuration options:
task_create_missing_queue_type: Sets the queue type for auto-created queues (e.g., quorum, classic)
task_create_missing_queue_exchange_type: Sets the exchange type for auto-created queues
Example usage:
app.conf.task_create_missing_queue_type = 'quorum'
Contributed by @ghirailghiro in #9815.
Prepare for release: v5.6.0 (#10010)
Celery v5.6.0 Release Candidate 2 is now available for testing. Please help us test this version and report any issues.
Celery v5.6.0 Release Candidate 2 is now available for testing.
Please help us test this version and report any issues.
Full Changelog: v5.6.0rc1...v5.6.0rc2
Celery v5.6.0 Release Candidate 2 is now available for testing. Please help us test this version and report any issues.
Remove Python 4.0 version condition for pytest dependencies (#9993)
Sanitize broker URL in delayed delivery logs (avoid leaking credentials) (#9997)
Don't fail task on timeout during cold shutdown (#9678)
Add Py39-314t to CI (#9999)
asynpool: Don't return from inside a finally block (#10000)
Prepare for (pre) release: v5.6.0rc2 (#10005)
Celery v5.6.0 Release Candidate 1 is now available for testing. Please help us test this version and report any issues.
Celery v5.6.0 Release Candidate 1 is now available for testing.
Please help us test this version and report any issues.
Full Changelog: v5.6.0b2...v5.6.0rc1
Celery v5.6.0 Release Candidate 1 is now available for testing. Please help us test this version and report any issues.
Add support for Django Connection pool (#9953)
Pin tblib to ==3.1.0 (#9967)
fix(worker): continue to attempt to bind other queues after a native delayed delivery binding failure has occurred (#9959)
Handle UnpicklingError in persistent scheduler initialization (#9952)
Bug Fix: Nested Chords Fail When Using django-celery-results with a Redis Backend (#9950)
Add support pymongo 4.12 (#9665)
Make tests compatible with pymongo >= 4.14 (#9968)
tblib updated from 3.1.0 to 3.2.0 (#9970)
Fix remaining function typing and docstring (#9971)
Fix regex pattern in version parsing and remove duplicate entry in __all__ (#9978)
Bump Kombu to v5.6.0 and removed <5.7 limit on kombu (#9981)
Prepare for (pre) release: v5.6.0rc1 (#9982)
Celery v5.6.0 Beta 2 is now available for testing. Please help us test this version and report any issues.
Celery v5.6.0 Beta 2 is now available for testing. Please help us test this version and report any issues.
Full Changelog: https://github.com/celery/celery/compare/v5.6.0b1...v5.6.0b2
Celery v5.6.0 Beta 2 is now available for testing. Please help us test this version and report any issues.
GitHub Actions: Test on Python 3.14 release candidate 2 (#9891)
Update pypy to python 3.11 (#9896)
Feature: Add support credential_provider to Redis Backend (#9879)
Celery.timezone: try tzlocal.get_localzone() before using LocalTimezone (#9862)
Run integration tests on Python 3.14 (#9903)
Fix arithmetic overflow for MSSQL result backend (#9904)
Add documentation for task_id param for apply_async function (#9906)
Support redis client name (#9900)
Bump Kombu to v5.6.0rc1 (#9918)
Fix broker connection retry attempt counter in the error log (#9911)
fix: restrict disable-prefetch feature to Redis brokers only (#9919)
fix(): preserve group order in replaced signature (#9910)
Remove Python 3.8 from CI workflow (#9930)
Update default Python versions in integration tests (#9931)
Update tox.ini to remove Python 3.8 (#9932)
Remove Python 3.8 from Dockerfile (#9933)
Update Python version requirement to 3.9 (#9935)
Update pypy version from 3.10 to 3.11 in Dockerfile (#9934)
Flake8 fixes (#9955)
Remove test-pypy3.txt from Dockerfile dependencies (#9939)
Remove backports.zoneinfo for Python 3.9 compatibility (#9956)
Update pytest-cov version for Python compatibility (#9957)
Update pytest-rerunfailures and pre-commit versions (#9958)
Prepare for (pre) release: v5.6.0b2 (#9938)
Update setup.py to fix deprecation warning by @auvipy in https://github.com/celery/celery/pull/9771
Celery v5.6.0 Beta 1 is now available for testing. Please help us test this version and report any issues.
pycurl" by @auvipy in https://github.com/celery/celery/pull/9620AsyncResult.forget() with couchdb backend method raises TypeError: a bytes-like object is required, not 'str' by @temaxuck in https://github.com/celery/celery/pull/9865.github/copilot-instructions.md for GitHub Copilot by @Nusnus in https://github.com/celery/celery/pull/9874Full Changelog: https://github.com/celery/celery/compare/v5.5.3...v5.6.0b1
Celery v5.6.0 Beta 1 is now available for testing. Please help us test this version and report any issues.
docs: mention of json serializer recursive reference message size blowup (#5000) (#9743)
docs: typo in canvas.rst (#9744)
Makes _on_retry return a float as required to be used as errback on retry_over_time (#9741)
Update canvas.rst doc calculation order for callback (#9758)
Updated Blacksmith logo (#9763)
Made the Sponsors logos link to their website (#9764)
add missing cloudamqp logo (#9767)
Improve sponsor visibility (#9768)
fix: (#9773) task_id must not be empty with chain as body of a chord (#9774)
Update setup.py to fix deprecation warning (#9771)
Adds integration test for chord_unlock bug when routed to quorum/topic queue (#9766)
Add xfail test for default queue/exchange fallback ignoring task_default_* settings (#9765)
Add xfail test for RabbitMQ quorum queue global QoS race condition (#9770)
fix: (#8786) time out when chord header fails with group body (#9788)
Fix #9738 : Add root_id and parent_id to .apply() (#9784)
Replace DelayedDelivery connection creation to use context manager (#9793)
Fix #9794: Pydantic integration fails with __future__.annotations. (#9795)
add go and rust implementation in docs (#9800)
Fix memory leak in exception handling (Issue #8882) (#9799)
Fix handlers docs (Issue #9787) (#9804)
Remove importlib_metadata leftovers (#9791)
Update timeout minutes for smoke tests CI (#9807)
Revert "Remove dependency on pycurl" (#9620)
Add Blacksmith Docker layer caching to all Docker builds (#9840)
Bump Kombu to v5.6.0b1 (#9839)
Disable pytest-xdist for smoke tests and increase retries (CI ONLY) (#9842)
Fix Python 3.13 compatibility in events dumper (#9826)
Dockerfile Build Optimizations (#9733)
Migrated from useblacksmith/build-push-action@v1 to useblacksmith/setup-docker-builder@v1 in the CI (#9846)
Remove incorrect example (#9854)
Revert "Use Django DB max age connection setting" (#9824)
Fix pending_result memory leak (#9806)
Update python-package.yml (#9856)
Bump Kombu to v5.6.0b2 (#9858)
Refactor integration and smoke tests CI (#9855)
Fix AsyncResult.forget() with couchdb backend method raises TypeError: a bytes-like object is required, not 'str' (#9865)
Improve Docs for SQS Authentication (#9868)
Added .github/copilot-instructions.md for GitHub Copilot (#9874)
misc: credit removal (#9877)
Choose queue type and exchange type when creating missing queues (fix #9671) (#9815)
fix: prevent celery from hanging due to spawned greenlet errors in greenlet drainers (#9371)
Feature/disable prefetch fixes (#9863)
Add worker_eta_task_limit configuration to manage ETA task memory usage (#9853)
Update runner version in Docker workflow (#9884)
Prepare for (pre) release: v5.6.0b1 (#9890)
make the tests run on python 3.13 for gcs backend by @auvipy in https://github.com/celery/celery/pull/9677
Full Changelog: https://github.com/celery/celery/compare/v5.5.2...v5.5.3
make the tests run on python 3.13 for gcs backend (#9677)
Added DeepWiki to README (#9683)
Limit redis to <=v5.2.1 to match Kombu (#9693)
Use EX_OK instead of literal zero (#9684)
Make wheel metadata reproducible (#9687)
let celery install from kombu dependencies for better align (#9696)
Fix stamping documentation to clarify stamped_headers key is optional in visitor methods (#9697)
Support apply_async without queue argument on quorum queues (#9686)
Updated rabbitmq doc about using quorum queues with task routes (#9707)
Add: Dumper Unit Test (#9711)
Add unit test for event.group_from (#9709)
refactor: add beat_cron_starting_deadline documentation warning (#9712)
fix: resolve issue #9569 by supporting distinct broker transport options for workers (#9695)
Fixes issue with retry callback arguments in DelayedDelivery (#9708)
get_exchange-unit-test (#9710)
ISSUE-9704: Update documentation of result_expires, filesystem backend is supported (#9716)
update to blacksmith ubuntu 24.04 (#9717)
Added unit tests for celery.utils.iso8601 (#9725)
Update introduction.rst docs (#9728)
Prepare for release: v5.5.3 (#9732)
Fix calculating remaining time across DST changes by @imrivera in https://github.com/celery/celery/pull/9669
setup_logger from COMPAT_MODULES by @rconradharris in https://github.com/celery/celery/pull/9668Full Changelog: https://github.com/celery/celery/compare/v5.5.1...v5.5.2
Fix calculating remaining time across DST changes (#9669)
Remove setup_logger from COMPAT_MODULES (#9668)
Fix mongodb bullet and fix github links in contributions section (#9672)
Prepare for release: v5.5.2 (#9675)
Fixed "AttributeError: list object has no attribute strip" with quorum queues and failover brokers by @Nusnus in https://github.com/celery/celery/pull
Full Changelog: https://github.com/celery/celery/compare/v5.5.0...v5.5.1
Fixed "AttributeError: list object has no attribute strip" with quorum queues and failover brokers (#9657)
Prepare for release: v5.5.1 (#9660)
Limit pymongo<4.7 when Python <= 3.10 due to breaking changes in 4.7 by @Nusnus in https://github.com/celery/celery/pull/8988
Celery v5.5.0 is now available.
See What's new in Celery 5.5 for a complete overview or read the main highlights below.
Long-standing disconnection issues with the Redis broker have been identified and resolved in Kombu 5.5.0, which is included with this release. These improvements significantly enhance stability when using Redis as a broker.
Additionally, the Redis backend now has better exception handling with the new exception_safe_to_retry feature, which improves resilience during temporary Redis connection issues. See Redis backend settings for complete documentation.
Contributed by @drienkop in #9614.
pycurl replaced with urllib3Replaced the pycurl dependency with urllib3.
We're monitoring the performance impact of this change and welcome feedback from users who notice any significant differences in their environments.
Contributed by @spawn-guy in Kombu #2134 and integrated in Celery via #9526.
Added support for RabbitMQ's new Quorum Queues feature, including compatibility with ETA tasks. This implementation has some limitations compared to classic queues, so please refer to the documentation for details.
Native Delayed Delivery is automatically enabled when quorum queues are detected to implement the ETA mechanism.
See Using Quorum Queues for complete documentation.
Configuration options:
broker_native_delayed_delivery_queue_type: Specifies the queue type for delayed delivery (default: quorum)task_default_queue_type: Sets the default queue type for tasks (default: classic)worker_detect_quorum_queues: Controls automatic detection of quorum queues (default: True)Contributed in #9207, #9121, and #9599.
For details regarding the 404 errors, see New Year's Security Incident.
Soft shutdown is a time limited warm shutdown, initiated just before the cold shutdown. The worker will allow worker_soft_shutdown_timeout seconds for all currently executing tasks to finish before it terminates. If the time limit is reached, the worker will initiate a cold shutdown and cancel all currently executing tasks.
This feature is particularly valuable when using brokers with visibility timeout mechanisms, such as Redis or SQS. It allows the worker enough time to re-queue tasks that were not completed before exiting, preventing task loss during worker shutdown.
See Stopping the worker for complete documentation on worker shutdown types.
Configuration options:
worker_soft_shutdown_timeout: Sets the duration in seconds for the soft shutdown period (default: 0.0, disabled)worker_enable_soft_shutdown_on_idle: Controls whether soft shutdown should be enabled even when the worker is idle (default: False)Contributed by @Nusnus in #9213, #9231, and #9238.
New native support for Pydantic models in tasks. This integration allows you to leverage Pydantic's powerful data validation and serialization capabilities directly in your Celery tasks.
Example usage:
from pydantic import BaseModel
from celery import Celery
app = Celery('tasks')
class ArgModel(BaseModel):
value: int
class ReturnModel(BaseModel):
value: str
@app.task(pydantic=True)
def x(arg: ArgModel) -> ReturnModel:
# args/kwargs type hinted as Pydantic model will be converted
assert isinstance(arg, ArgModel)
# The returned model will be converted to a dict automatically
return ReturnModel(value=f"example: {arg.value}")
See Argument validation with Pydantic for complete documentation.
Configuration options:
pydantic=True: Enables Pydantic integration for the taskpydantic_strict=True/False: Controls whether strict validation is enabled (default: False)pydantic_context={...}: Provides additional context for validationpydantic_dump_kwargs={...}: Customizes serialization behaviorContributed by @mathiasertl in #9023, #9319, and #9393.
New support for Google Cloud Pub/Sub as a message transport, expanding Celery's cloud integration options.
See Google Pub/Sub Transport for complete documentation.
For the Google Pub/Sub support you have to install additional dependencies:
$ pip install "celery[gcpubsub]"
Then configure your Celery application to use the Google Pub/Sub transport:
broker_url = 'gcpubsub://projects/project-id'
Contributed by @haimjether in #9351.
Official support for Python 3.13. All core dependencies have been updated to ensure compatibility, including Kombu and py-amqp.
This release maintains compatibility with Python 3.8 through 3.13, as well as PyPy 3.10+.
Contributed by @Nusnus in #9309 and #9350.
The "REMAP_SIGTERM" feature, previously undocumented, has been tested, documented, and is now officially supported. This feature allows you to remap the SIGTERM signal to SIGQUIT, enabling you to initiate a soft or cold shutdown using TERM instead of QUIT.
This is particularly useful in containerized environments where SIGTERM is the standard signal for graceful termination.
See Cold Shutdown documentation for more info.
To enable this feature, set the environment variable:
export REMAP_SIGTERM="SIGQUIT"
Contributed by @Nusnus in #9461.
New create_tables_at_setup option for the database backend. This option controls when database tables are created, allowing for non-lazy table creation.
By default (create_tables_at_setup=True), tables are created during backend initialization. Setting this to False defers table creation until they are actually needed, which can be useful in certain deployment scenarios where you want more control over database schema management.
See Database backend settings for complete documentation.
Configuration:
app.conf.result_backend = 'db+sqlite:///results.db'
app.conf.database_create_tables_at_setup = False
Contributed by @MarcBresson in #9228.
docker compose in Contributing's doc build section by @KeisukeYamashita in https://github.com/celery/celery/pull/9219_is_ambigious -> _is_ambiguous by @pachewise in https://github.com/celery/celery/pull/9248[srv] extra requirement by @fmigneault in https://github.com/celery/celery/pull/9258celery --loader option parsing by @0x2b3bfa0 in https://github.com/celery/celery/pull/9361task_acks_late=False by @Nusnus in https://github.com/celery/celery/pull/9461pycurl by @jmsmkn in https://github.com/celery/celery/pull/9526Full Changelog: https://github.com/celery/celery/compare/v5.4.0...v5.5.0
Celery v5.5.0 is now available.
See whatsnew-5.5 for a complete overview or read the main highlights below.
Long-standing disconnection issues with the Redis broker have been identified and resolved in Kombu 5.5.0, which is included with this release. These improvements significantly enhance stability when using Redis as a broker.
Additionally, the Redis backend now has better exception handling with the new exception_safe_to_retry feature, which improves resilience during temporary Redis connection issues. See conf-redis-result-backend for complete documentation.
Contributed by @drienkop in #9614.
Replaced the pycurl dependency with urllib3.
We're monitoring the performance impact of this change and welcome feedback from users who notice any significant differences in their environments.
Contributed by @spawn-guy in Kombu #2134 and integrated in Celery via #9526.
Added support for RabbitMQ's new Quorum Queues feature, including compatibility with ETA tasks. This implementation has some limitations compared to classic queues, so please refer to the documentation for details.
Native Delayed Delivery is automatically enabled when quorum queues are detected to implement the ETA mechanism.
See using-quorum-queues for complete documentation.
Configuration options:
broker_native_delayed_delivery_queue_type: Specifies the queue type for delayed delivery (default: quorum)
task_default_queue_type: Sets the default queue type for tasks (default: classic)
worker_detect_quorum_queues: Controls automatic detection of quorum queues (default: True)
Contributed in #9207, #9121, and #9599.
For details regarding the 404 errors, see New Year's Security Incident.
Soft shutdown is a time limited warm shutdown, initiated just before the cold shutdown. The worker will allow worker_soft_shutdown_timeout seconds for all currently executing tasks to finish before it terminates. If the time limit is reached, the worker will initiate a cold shutdown and cancel all currently executing tasks.
This feature is particularly valuable when using brokers with visibility timeout mechanisms, such as Redis or SQS. It allows the worker enough time to re-queue tasks that were not completed before exiting, preventing task loss during worker shutdown.
See worker-stopping for complete documentation on worker shutdown types.
Configuration options:
worker_soft_shutdown_timeout: Sets the duration in seconds for the soft shutdown period (default: 0.0, disabled)
worker_enable_soft_shutdown_on_idle: Controls whether soft shutdown should be enabled even when the worker is idle (default: False)
Contributed by @Nusnus in #9213, #9231, and #9238.
New native support for Pydantic models in tasks. This integration allows you to leverage Pydantic's powerful data validation and serialization capabilities directly in your Celery tasks.
Example usage:
from pydantic import BaseModel
from celery import Celery
app = Celery('tasks')
class ArgModel(BaseModel):
value: int
class ReturnModel(BaseModel):
value: str
@app.task(pydantic=True)
def x(arg: ArgModel) -> ReturnModel:
# args/kwargs type hinted as Pydantic model will be converted
assert isinstance(arg, ArgModel)
# The returned model will be converted to a dict automatically
return ReturnModel(value=f"example: {arg.value}")
See task-pydantic for complete documentation.
Configuration options:
pydantic=True: Enables Pydantic integration for the task
pydantic_strict=True/False: Controls whether strict validation is enabled (default: False)
pydantic_context={...}: Provides additional context for validation
pydantic_dump_kwargs={...}: Customizes serialization behavior
Contributed by @mathiasertl in #9023, #9319, and #9393.
New support for Google Cloud Pub/Sub as a message transport, expanding Celery's cloud integration options.
See broker-gcpubsub for complete documentation.
For the Google Pub/Sub support you have to install additional dependencies:
$ pip install "celery[gcpubsub]"
Then configure your Celery application to use the Google Pub/Sub transport:
broker_url = 'gcpubsub://projects/project-id'
Contributed by @haimjether in #9351.
Official support for Python 3.13. All core dependencies have been updated to ensure compatibility, including Kombu and py-amqp.
This release maintains compatibility with Python 3.8 through 3.13, as well as PyPy 3.10+.
Contributed by @Nusnus in #9309 and #9350.
The "REMAP_SIGTERM" feature, previously undocumented, has been tested, documented, and is now officially supported. This feature allows you to remap the SIGTERM signal to SIGQUIT, enabling you to initiate a soft or cold shutdown using TERM instead of QUIT.
This is particularly useful in containerized environments where SIGTERM is the standard signal for graceful termination.
See Cold Shutdown documentation for more info.
To enable this feature, set the environment variable:
export REMAP_SIGTERM="SIGQUIT"
Contributed by @Nusnus in #9461.
New create_tables_at_setup option for the database backend. This option controls when database tables are created, allowing for non-lazy table creation.
By default (create_tables_at_setup=True), tables are created during backend initialization. Setting this to False defers table creation until they are actually needed, which can be useful in certain deployment scenarios where you want more control over database schema management.
See conf-database-result-backend for complete documentation.
Configuration:
app.conf.result_backend = 'db+sqlite:///results.db'
app.conf.database_create_tables_at_setup = False
Contributed by @MarcBresson in #9228.
(docs): use correct version celery v.5.4.x (#8975)
Update mypy to 1.10.0 (#8977)
Limit pymongo<4.7 when Python <= 3.10 due to breaking changes in 4.7 (#8988)
Bump pytest from 8.1.1 to 8.2.0 (#8987)
Update README to Include FastAPI in Framework Integration Section (#8978)
Clarify return values of ..._on_commit methods (#8984)
add kafka broker docs (#8935)
Limit pymongo<4.7 regardless of Python version (#8999)
Update pymongo[srv] requirement from <4.7,>=4.0.2 to >=4.0.2,<4.8 (#9000)
Update elasticsearch requirement from <=8.13.0 to <=8.13.1 (#9004)
security: SecureSerializer: support generic low-level serializers (#8982)
don't kill if pid same as file (#8997) (#8998)
Update cryptography to 42.0.6 (#9005)
Bump cryptography from 42.0.6 to 42.0.7 (#9009)
don't kill if pid same as file (#8997) (#8998) (#9007)
Added -vv to unit, integration and smoke tests (#9014)
SecuritySerializer: ensure pack separator will not be conflicted with serialized fields (#9010)
Update sphinx-click to 5.2.2 (#9025)
Bump sphinx-click from 5.2.2 to 6.0.0 (#9029)
Fix a typo to display the help message in first-steps-with-django (#9036)
Pinned requests to v2.31.0 due to docker-py bug #3256 (#9039)
Fix certificate validity check (#9037)
Revert "Pinned requests to v2.31.0 due to docker-py bug #3256" (#9043)
Bump pytest from 8.2.0 to 8.2.1 (#9035)
Update elasticsearch requirement from <=8.13.1 to <=8.13.2 (#9045)
Fix detection of custom task set as class attribute with Django (#9038)
Update elastic-transport requirement from <=8.13.0 to <=8.13.1 (#9050)
Bump pycouchdb from 1.14.2 to 1.16.0 (#9052)
Update pytest to 8.2.2 (#9060)
Bump cryptography from 42.0.7 to 42.0.8 (#9061)
Update elasticsearch requirement from <=8.13.2 to <=8.14.0 (#9069)
[enhance feature] Crontab schedule: allow using month names (#9068)
Enhance tox environment: [testenv:clean] (#9072)
Clarify docs about Reserve one task at a time (#9073)
GCS docs fixes (#9075)
Use hub.remove_writer instead of hub.remove for write fds (#4185) (#9055)
Class method to process crontab string (#9079)
Fixed smoke tests env bug when using integration tasks that rely on Redis (#9090)
Bugfix - a task will run multiple times when chaining chains with groups (#9021)
Bump mypy from 1.10.0 to 1.10.1 (#9096)
Don't add a separator to global_keyprefix if it already has one (#9080)
Update pymongo[srv] requirement from <4.8,>=4.0.2 to >=4.0.2,<4.9 (#9111)
Added missing import in examples for Django (#9099)
Bump Kombu to v5.4.0rc1 (#9117)
Removed skipping Redis in t/smoke/tests/test_consumer.py tests (#9118)
Update pytest-subtests to 0.13.0 (#9120)
Increased smoke tests CI timeout (#9122)
Bump Kombu to v5.4.0rc2 (#9127)
Update zstandard to 0.23.0 (#9129)
Update pytest-subtests to 0.13.1 (#9130)
Changed retry to tenacity in smoke tests (#9133)
Bump mypy from 1.10.1 to 1.11.0 (#9135)
Update cryptography to 43.0.0 (#9138)
Update pytest to 8.3.1 (#9137)
Added support for Quorum Queues (#9121)
Bump Kombu to v5.4.0rc3 (#9139)
Cleanup in Changelog.rst (#9141)
Update Django docs for CELERY_CACHE_BACKEND (#9143)
Added missing docs to previous releases (#9144)
Fixed a few documentation build warnings (#9145)
docs(README): link invalid (#9148)
Prepare for (pre) release: v5.5.0b1 (#9146)
Bump pytest from 8.3.1 to 8.3.2 (#9153)
Remove setuptools deprecated test command from setup.py (#9159)
Pin pre-commit to latest version 3.8.0 from Python 3.9 (#9156)
Bump mypy from 1.11.0 to 1.11.1 (#9164)
Change "docker-compose" to "docker compose" in Makefile (#9169)
update python versions and docker compose (#9171)
Add support for Pydantic model validation/serialization (fixes #8751) (#9023)
Allow local dynamodb to be installed on another host than localhost (#8965)
Terminate job implementation for gevent concurrency backend (#9083)
Bump Kombu to v5.4.0 (#9177)
Add check for soft_time_limit and time_limit values (#9173)
Prepare for (pre) release: v5.5.0b2 (#9178)
Added SQS (localstack) broker to canvas smoke tests (#9179)
Pin elastic-transport to <= latest version 8.15.0 (#9182)
Update elasticsearch requirement from <=8.14.0 to <=8.15.0 (#9186)
improve formatting (#9188)
Add basic helm chart for celery (#9181)
Update kafka.rst (#9194)
Update pytest-order to 1.3.0 (#9198)
Update mypy to 1.11.2 (#9206)
all added to routes (#9204)
Fix typos discovered by codespell (#9212)
Use tzdata extras with zoneinfo backports (#8286)
Use docker compose in Contributing's doc build section (#9219)
Failing test for issue #9119 (#9215)
Fix date_done timezone issue (#8385)
CI Fixes to smoke tests (#9223)
fix: passes current request context when pushing to request_stack (#9208)
Fix broken link in the Using RabbitMQ docs page (#9226)
Added Soft Shutdown Mechanism (#9213)
Added worker_enable_soft_shutdown_on_idle (#9231)
Bump cryptography from 43.0.0 to 43.0.1 (#9233)
Added docs regarding the relevancy of soft shutdown and ETA tasks (#9238)
Show broker_connection_retry_on_startup warning only if it evaluates as False (#9227)
Fixed docker-docs CI failure (#9240)
Added docker cleanup auto-fixture to improve smoke tests stability (#9243)
print is not thread-safe, so should not be used in signal handler (#9222)
Prepare for (pre) release: v5.5.0b3 (#9244)
Correct the error description in exception message when validate soft_time_limit (#9246)
Update msgpack to 1.1.0 (#9249)
chore(utils/time.py): rename _is_ambigious -> _is_ambiguous (#9248)
Reduced Smoke Tests to min/max supported python (3.8/3.12) (#9252)
Update pytest to 8.3.3 (#9253)
Update elasticsearch requirement from <=8.15.0 to <=8.15.1 (#9255)
update mongodb without deprecated [srv] extra requirement (#9258)
blacksmith.sh: Migrate workflows to Blacksmith (#9261)
Fixes #9119: inject dispatch_uid for retry-wrapped receivers (#9247)
Run all smoke tests CI jobs together (#9263)
Improve documentation on visibility timeout (#9264)
Bump pytest-celery to 1.1.2 (#9267)
Added missing "app.conf.visibility_timeout" in smoke tests (#9266)
Improved stability with t/smoke/tests/test_consumer.py (#9268)
Improved Redis container stability in the smoke tests (#9271)
Disabled EXHAUST_MEMORY tests in Smoke-tasks (#9272)
Marked xfail for test_reducing_prefetch_count with Redis - flaky test (#9273)
Fixed pypy unit tests random failures in the CI (#9275)
Fixed more pypy unit tests random failures in the CI (#9278)
Fix Redis container from aborting randomly (#9276)
Run Integration & Smoke CI tests together after unit tests passes (#9280)
Added "loglevel verbose" to Redis containers in smoke tests (#9282)
Fixed Redis error in the smoke tests: "Possible SECURITY ATTACK detected" (#9284)
Refactored the smoke tests github workflow (#9285)
Increased --reruns 3->4 in smoke tests (#9286)
Improve stability of smoke tests (CI and Local) (#9287)
Fixed Smoke tests CI "test-case" lables (specific instead of general) (#9288)
Use assert_log_exists instead of wait_for_log in worker smoke tests (#9290)
Optimized t/smoke/tests/test_worker.py (#9291)
Enable smoke tests dockers check before each test starts (#9292)
Relaxed smoke tests flaky tests mechanism (#9293)
Updated quorum queue detection to handle multiple broker instances (#9294)
Non-lazy table creation for database backend (#9228)
Pin pymongo to latest version 4.9 (#9297)
Bump pymongo from 4.9 to 4.9.1 (#9298)
Bump Kombu to v5.4.2 (#9304)
Use rabbitmq:3 in stamping smoke tests (#9307)
Bump pytest-celery to 1.1.3 (#9308)
Added Python 3.13 Support (#9309)
Add log when global qos is disabled (#9296)
Added official release docs (whatsnew) for v5.5 (#9312)
Enable Codespell autofix (#9313)
Pydantic typehints: Fix optional, allow generics (#9319)
Prepare for (pre) release: v5.5.0b4 (#9322)
Added Blacksmith.sh to the Sponsors section in the README (#9323)
Revert "Added Blacksmith.sh to the Sponsors section in the README" (#9324)
Added Blacksmith.sh to the Sponsors section in the README (#9325)
Added missing |oc-sponsor-3| in README (#9326)
Use Blacksmith SVG logo (#9327)
Updated Blacksmith SVG logo (#9328)
Revert "Updated Blacksmith SVG logo" (#9329)
Update pymongo to 4.10.0 (#9330)
Update pymongo to 4.10.1 (#9332)
Update user guide to recommend delay_on_commit (#9333)
Pin pre-commit to latest version 4.0.0 (Python 3.9+) (#9334)
Update ephem to 4.1.6 (#9336)
Updated Blacksmith SVG logo (#9337)
Prepare for (pre) release: v5.5.0rc1 (#9341)
Fix: Treat dbm.error as a corrupted schedule file (#9331)
Pin pre-commit to latest version 4.0.1 (#9343)
Added Python 3.13 to Dockerfiles (#9350)
Skip test_pool_restart_import_modules on PyPy due to test issue (#9352)
Update elastic-transport requirement from <=8.15.0 to <=8.15.1 (#9347)
added dragonfly logo (#9353)
Update README.rst (#9354)
Update README.rst (#9355)
Update mypy to 1.12.0 (#9356)
Bump Kombu to v5.5.0rc1 (#9357)
Fix celery --loader option parsing (#9361)
Add support for Google Pub/Sub transport (#9351)
Add native incr support for GCSBackend (#9302)
fix(perform_pending_operations): prevent task duplication on shutdown… (#9348)
Update grpcio to 1.67.0 (#9365)
Update google-cloud-firestore to 2.19.0 (#9364)
Annotate celery/utils/timer2.py (#9362)
Update cryptography to 43.0.3 (#9366)
Update mypy to 1.12.1 (#9368)
Bump mypy from 1.12.1 to 1.13.0 (#9373)
Pass timeout and confirm_timeout to producer.publish() (#9374)
Bump Kombu to v5.5.0rc2 (#9382)
Bump pytest-cov from 5.0.0 to 6.0.0 (#9388)
default strict to False for pydantic tasks (#9393)
Only log that global QoS is disabled if using amqp (#9395)
chore: update sponsorship logo (#9398)
Allow custom hostname for celery_worker in celery.contrib.pytest / celery.contrib.testing.worker (#9405)
Removed docker-docs from CI (optional job, malfunctioning) (#9406)
Added a utility to format changelogs from the auto-generated GitHub release notes (#9408)
Bump codecov/codecov-action from 4 to 5 (#9412)
Update elasticsearch requirement from <=8.15.1 to <=8.16.0 (#9410)
Native Delayed Delivery in RabbitMQ (#9207)
Prepare for (pre) release: v5.5.0rc2 (#9416)
Document usage of broker_native_delayed_delivery_queue_type (#9419)
Adjust section in what's new document regarding quorum queues support (#9420)
Update pytest-rerunfailures to 15.0 (#9422)
Document group unrolling (#9421)
fix small typo acces -> access (#9434)
Update cryptography to 44.0.0 (#9437)
Added pypy to Dockerfile (#9438)
Skipped flaky tests on pypy (all pass after ~10 reruns) (#9439)
Allowing managed credentials for azureblockblob (#9430)
Allow passing Celery objects to the Click entry point (#9426)
support Request termination for gevent (#9440)
Prevent event_mask from being overwritten. (#9432)
Update pytest to 8.3.4 (#9444)
Prepare for (pre) release: v5.5.0rc3 (#9450)
Bugfix: SIGQUIT not initiating cold shutdown when task_acks_late=False (#9461)
Fixed pycurl dep with Python 3.8 (#9471)
Update elasticsearch requirement from <=8.16.0 to <=8.17.0 (#9469)
Bump pytest-subtests from 0.13.1 to 0.14.1 (#9459)
documentation: Added a type annotation to the periodic task example (#9473)
Prepare for (pre) release: v5.5.0rc4 (#9474)
Bump mypy from 1.13.0 to 1.14.0 (#9476)
Fix cassandra backend port settings not working (#9465)
Unroll group when a group with a single item is chained using the | operator (#9456)
fix(django): catch the right error when trying to close db connection (#9392)
Replacing a task with a chain which contains a group now returns a result instead of hanging (#9484)
Avoid using a group of one as it is now unrolled into a chain (#9510)
Link to the correct IRC network (#9509)
Bump pytest-github-actions-annotate-failures from 0.2.0 to 0.3.0 (#9504)
Update canvas.rst to fix output result from chain object (#9502)
Unauthorized Changes Cleanup (#9528)
[RE-APPROVED] fix(django): catch the right error when trying to close db connection (#9529)
[RE-APPROVED] Link to the correct IRC network (#9531)
[RE-APPROVED] Update canvas.rst to fix output result from chain object (#9532)
Update test-ci-base.txt (#9539)
Update install-pyenv.sh (#9540)
Update elasticsearch requirement from <=8.17.0 to <=8.17.1 (#9518)
Bump google-cloud-firestore from 2.19.0 to 2.20.0 (#9493)
Bump mypy from 1.14.0 to 1.14.1 (#9483)
Update elastic-transport requirement from <=8.15.1 to <=8.17.0 (#9490)
Update Dockerfile by adding missing Python version 3.13 (#9549)
Fix typo for default of sig (#9495)
fix(crontab): resolve constructor type conflicts (#9551)
worker_max_memory_per_child: kilobyte is 1024 bytes (#9553)
Fix formatting in quorum queue docs (#9555)
Bump cryptography from 44.0.0 to 44.0.1 (#9556)
Fix the send_task method when detecting if the native delayed delivery approach is available (#9552)
Reverted PR #7814 & minor code improvement (#9494)
Improved donation and sponsorship visibility (#9558)
Updated the Getting Help section, replacing deprecated with new resources (#9559)
Fixed django example (#9562)
Bump Kombu to v5.5.0rc3 (#9564)
Bump ephem from 4.1.6 to 4.2 (#9565)
Bump pytest-celery to v1.2.0 (#9568)
Remove dependency on pycurl (#9526)
Set TestWorkController.__test__ (#9574)
Fixed bug when revoking by stamped headers a stamp that does not exist (#9575)
Canvas Stamping Doc Fixes (#9578)
Bugfix: Chord with a chord in header doesn't invoke error callback on inner chord header failure (default config) (#9580)
Prepare for (pre) release: v5.5.0rc5 (#9582)
Bump google-cloud-firestore from 2.20.0 to 2.20.1 (#9584)
Fix tests with Click 8.2 (#9590)
Bump cryptography from 44.0.1 to 44.0.2 (#9591)
Update elasticsearch requirement from <=8.17.1 to <=8.17.2 (#9594)
Bump pytest from 8.3.4 to 8.3.5 (#9598)
Refactored and Enhanced DelayedDelivery bootstep (#9599)
Improve docs about acks_on_failure_or_timeout (#9577)
Update SECURITY.md (#9609)
remove flake8plus as not needed anymore (#9610)
remove [bdist_wheel] universal = 0 from setup.cfg as not needed (#9611)
remove importlib-metadata as not needed in python3.8 anymore (#9612)
feat: define exception_safe_to_retry for redisbackend (#9614)
Bump Kombu to v5.5.0 (#9615)
Update elastic-transport requirement from <=8.17.0 to <=8.17.1 (#9616)
[docs] fix first-steps (#9618)
Revert "Improve docs about acks_on_failure_or_timeout" (#9606)
Improve CI stability and performance (#9624)
Improved explanation for Database transactions at user guide for tasks (#9617)
update tests to use python 3.8 codes only (#9627)
#9597: Ensure surpassing Hard Timeout limit when task_acks_on_failure_or_timeout is False rejects the task (#9626)
Lock Kombu to v5.5.x (using urllib3 instead of pycurl) (#9632)
Lock pytest-celery to v1.2.x (using urllib3 instead of pycurl) (#9633)
Add Codecov Test Analytics (#9635)
Bump Kombu to v5.5.2 (#9643)
Prepare for release: v5.5.0 (#9644)
Updated the Getting Help section, replacing deprecated with new resources by @Nusnus in https://github.com/celery/celery/pull/9559
Celery v5.5.0 Release Candidate 5 is now available for testing. Please help us test this version and report any issues.
See What’s new in Celery 5.5 (Immunity) or read the main highlights below.
The minimum required Kombu version has been bumped to 5.5.0. Kombu is currently at 5.5.0rc3.
A completely new ETA mechanism was developed to allow full support with RabbitMQ Quorum Queues.
After upgrading to this version, please share your feedback on the quorum queues support.
Relevant Issues: #9207, #6067
After upgrading to this version, please share your feedback on the Google Pub/Sub transport support.
Relevant Issues: #9351
Additional dependencies have been migrated successfully to Python 3.13, including Kombu and py-amqp.
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.
The soft shutdown can replace the cold shutdown when using a broker with a visibility timeout mechanism, like Redis or SQS, to enable a more graceful cold shutdown procedure, allowing the worker enough time to re-queue tasks that were not completed (e.g., Restoring 1 unacknowledged message(s)) by resetting the visibility timeout of the unacknowledged messages just before the worker exits completely.
After upgrading to this version, please share your feedback on the new Soft Shutdown mechanism.
Relevant Issues: https://github.com/celery/celery/pull/9213, https://github.com/celery/celery/pull/9231, https://github.com/celery/celery/pull/9238
The REMAP_SIGTERM "hidden feature" has been tested, documented and is now officially supported.
This feature allows users to remap the SIGTERM signal to SIGQUIT, to initiate a soft or a cold shutdown using TERM
instead of QUIT.
This release introduces support for Pydantic models in Celery tasks. For more info, see the new pydantic example and PR #9023 by @mathiasertl.
After upgrading to this version, please share your feedback on the new Pydantic support.
The root cause of the Redis broker instability issue has been identified and resolved in the v5.4.0 release of Kombu, which should resolve the disconnections bug and offer additional improvements.
After upgrading to this version, please share your feedback on the Redis broker stability.
Relevant Issues: #7276, #8091, #8030, #8384
This release introduces the initial support for Quorum Queues with Celery.
See new configuration options for more details:
After upgrading to this version, please share your feedback on the Quorum Queues support.
Relevant Issues: #6067, #9121
pycurl by @jmsmkn in https://github.com/celery/celery/pull/9526Full Changelog: https://github.com/celery/celery/compare/v5.5.0rc4...v5.5.0rc5
Celery v5.5.0 Release Candidate 5 is now available for testing. Please help us test this version and report any issues.
See whatsnew-5.5 or read the main highlights below.
The minimum required Kombu version has been bumped to 5.5.0. Kombu is currently at 5.5.0rc3.
A completely new ETA mechanism was developed to allow full support with RabbitMQ Quorum Queues.
After upgrading to this version, please share your feedback on the quorum queues support.
New documentation.
New broker_native_delayed_delivery_queue_type configuration option.
After upgrading to this version, please share your feedback on the Google Pub/Sub transport support.
Relevant Issues: #9351
Additional dependencies have been migrated successfully to Python 3.13, including Kombu and py-amqp.
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.
The soft shutdown can replace the cold shutdown when using a broker with a visibility timeout mechanism, like Redis or SQS, to enable a more graceful cold shutdown procedure, allowing the worker enough time to re-queue tasks that were not completed (e.g., Restoring 1 unacknowledged message(s)) by resetting the visibility timeout of the unacknowledged messages just before the worker exits completely.
After upgrading to this version, please share your feedback on the new Soft Shutdown mechanism.
Relevant Issues: #9213, #9231, #9238
New documentation for each shutdown type.
New worker_soft_shutdown_timeout configuration option.
New worker_enable_soft_shutdown_on_idle configuration option.
The REMAP_SIGTERM "hidden feature" has been tested, documented and is now officially supported. This feature allows users to remap the SIGTERM signal to SIGQUIT, to initiate a soft or a cold shutdown using TERM instead of QUIT.
This release introduces support for Pydantic models in Celery tasks. For more info, see the new pydantic example and PR #9023 by @mathiasertl.
After upgrading to this version, please share your feedback on the new Pydantic support.
The root cause of the Redis broker instability issue has been identified and resolved in the v5.4.0 release of Kombu, which should resolve the disconnections bug and offer additional improvements.
After upgrading to this version, please share your feedback on the Redis broker stability.
Relevant Issues: #7276, #8091, #8030, #8384
This release introduces the initial support for Quorum Queues with Celery.
See new configuration options for more details:
task_default_queue_type
worker_detect_quorum_queues
After upgrading to this version, please share your feedback on the Quorum Queues support.
Bump mypy from 1.13.0 to 1.14.0 (#9476)
Fix cassandra backend port settings not working (#9465)
Unroll group when a group with a single item is chained using the | operator (#9456)
fix(django): catch the right error when trying to close db connection (#9392)
Replacing a task with a chain which contains a group now returns a result instead of hanging (#9484)
Avoid using a group of one as it is now unrolled into a chain (#9510)
Link to the correct IRC network (#9509)
Bump pytest-github-actions-annotate-failures from 0.2.0 to 0.3.0 (#9504)
Update canvas.rst to fix output result from chain object (#9502)
Unauthorized Changes Cleanup (#9528)
[RE-APPROVED] fix(django): catch the right error when trying to close db connection (#9529)
[RE-APPROVED] Link to the correct IRC network (#9531)
[RE-APPROVED] Update canvas.rst to fix output result from chain object (#9532)
Update test-ci-base.txt (#9539)
Update install-pyenv.sh (#9540)
Update elasticsearch requirement from <=8.17.0 to <=8.17.1 (#9518)
Bump google-cloud-firestore from 2.19.0 to 2.20.0 (#9493)
Bump mypy from 1.14.0 to 1.14.1 (#9483)
Update elastic-transport requirement from <=8.15.1 to <=8.17.0 (#9490)
Update Dockerfile by adding missing Python version 3.13 (#9549)
Fix typo for default of sig (#9495)
fix(crontab): resolve constructor type conflicts (#9551)
worker_max_memory_per_child: kilobyte is 1024 bytes (#9553)
Fix formatting in quorum queue docs (#9555)
Bump cryptography from 44.0.0 to 44.0.1 (#9556)
Fix the send_task method when detecting if the native delayed delivery approach is available (#9552)
Reverted PR #7814 & minor code improvement (#9494)
Improved donation and sponsorship visibility (#9558)
Updated the Getting Help section, replacing deprecated with new resources (#9559)
Fixed django example (#9562)
Bump Kombu to v5.5.0rc3 (#9564)
Bump ephem from 4.1.6 to 4.2 (#9565)
Bump pytest-celery to v1.2.0 (#9568)
Remove dependency on pycurl (#9526)
Set TestWorkController.__test__ (#9574)
Fixed bug when revoking by stamped headers a stamp that does not exist (#9575)
Canvas Stamping Doc Fixes (#9578)
Bugfix: Chord with a chord in header doesn't invoke error callback on inner chord header failure (default config) (#9580)
Prepare for (pre) release: v5.5.0rc5 (#9582)
One column per quarter.