unstale

pypi / celery

celery

What changed in celery 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

10 breaking4 security1 deprecations22 new APIs and options3 performance9 behavior and defaults68 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

celery 5117 changes

Breaking changes 10

  • Acknowledgment behavior on task failure is decoupled from acknowledgment behavior on timeout; review settings if relying on their previous combined behavior.

    5.7.0release notes

  • Acknowledgment behavior on timeout is decoupled from acknowledgment behavior on task failure; review settings if relying on their previous combined behavior.

    5.7.0release notes

  • The Brotli optional dependency extra now uses brotlicffi instead of brotlipy.

    5.7.0release notes

  • A chord fails when a preceding chord's header failed.

    5.7.0release notes

  • The chord fails when the broker refuses chord_unlock's retry publish.

    5.7.0release notes

  • Eager chain execution now stops when a task raises Ignore or Reject.

    5.7.0release notes

  • Python 3.10 is now the minimum supported version; Python 3.9 support has been removed.

    5.7.0release notes

  • Access to private attributes and dunders through registered() is denied.

    5.7.0release notes

  • Applying @shared_task twice now raises a clear error.

    5.7.0release notes

  • Python 3.8 support is dropped; Python 3.9 is now required to use Celery 5.6.0.

    5.6.0release notes

Security 4

  • AzureBlockBlobBackend.as_uri redacts SAS tokens and lowercases account keys.

    5.7.0release notes

  • broker_read_url is now masked by filter_hidden_settings.

    5.7.0release notes

  • broker_write_url is now masked by filter_hidden_settings.

    5.7.0release notes

  • Broker URLs containing passwords are now sanitized in all log output, preventing credentials from being logged in plaintext by delayed delivery.

    5.6.0release notes

Deprecations 1

  • Celery warns when routing options are set as task attributes.

    5.7.0release notes

New APIs and options 22

  • Timeout acknowledgments can now be configured independently of failure acknowledgments.

    5.7.0release notes

  • Checks whether a result exists.

    5.7.0release notes

  • Celery beat gains opt-in remote control support, including inspect ping.

    5.7.0release notes

  • Adds the celery_beat_task header to task options.

    5.7.0release notes

  • ColorFormatter gains datefmt support for formatting log timestamps.

    5.7.0release notes

  • The auto concurrency option makes worker concurrency cgroup-aware.

    5.7.0release notes

  • Adds datefmt support to ColorFormatter and TaskFormatter.

    5.7.0release notes

  • Adds an engine_callback to the database backend SessionManager.

    5.7.0release notes

  • Celery Beat now supports opt-in remote-control inspect ping.

    5.7.0release notes

  • Adds support for using pymemcache as a result backend.

    5.7.0release notes

  • Redis backend SSL configuration can now be specified using Redis URLs.

    5.7.0release notes

  • Controls the expiration of chord-related Redis keys.

    5.7.0release notes

  • Configures expiration for failure results.

    5.7.0release notes

  • The asynchronous prefork pool now supports the spawn start method.

    5.7.0release notes

  • Controls the depth of task argument and keyword-argument representations.

    5.7.0release notes

  • Controls whether tasks are requeued after a worker process is lost.

    5.7.0release notes

  • Adds an option to limit task requeues after worker loss, allowing developers to control repeated requeueing.

    5.7.0release notes

  • TaskFormatter gains datefmt support for formatting log timestamps.

    5.7.0release notes

  • worker_concurrency can be cgroup-aware through --concurrency=auto.

    5.7.0release notes

  • Sets the exchange type for auto-created missing queues.

    5.6.0release notes

  • Sets the queue type for auto-created missing queues, such as quorum or classic.

    5.6.0release notes

  • Adds a configuration option to limit ETA or countdown tasks fetched by workers, helping prevent out-of-memory crashes when brokers contain many scheduled tasks.

    5.6.0release notes

Performance 3

  • Extension entry-point discovery is cached to reduce apply_async CPU overhead.

    5.7.0release notes

  • Reduces O(K²) message bloat in a chain of chords.

    5.6.3release notes

  • Adds a missing database index on date_done.

    5.6.3release notes

Behavior and default changes 9

  • Failure acknowledgments can now be configured independently of timeout acknowledgments.

    5.7.0release notes

  • Automatic worker concurrency detection now accounts for cgroups.

    5.7.0release notes

  • The backend retry policy is now applied to all DatabaseBackend database operations.

    5.7.0release notes

  • Tasks configured with pydantic=True can now accept Pydantic model instances when called.

    5.7.0release notes

  • Tasks configured with pydantic=True now accept Pydantic models when called.

    5.7.0release notes

  • Queues.deselect() supports queue aliases.

    5.7.0release notes

  • ResultSet.add() can now be called after the set's results are ready.

    5.7.0release notes

  • Task publishing signals are no longer gated on cached receiver lists.

    5.7.0release notes

  • The worker hostname is now provided as the signal sender.

    5.7.0release notes

Fixes and other changes 68

  • backends.by_url() accepts backend classes.

    5.7.0release notes

  • Beat no longer sleeps too long or returns a delayed value when is_due changes the heap.

    5.7.0release notes

  • Celery waits between retries when the broker refuses a callback publish.

    5.7.0release notes

  • Beat keeps running when a schedule entry fails, and impossible crontab dates are rejected.

    5.7.0release notes

  • Corrects relative schedule rounding across daylight saving time transitions.

    5.7.0release notes

  • celery multi no longer crashes when a single node name contains a dash.

    5.7.0release notes

  • Fixed failures with node names containing dashes.

    5.7.0release notes

  • Representations no longer mangle task names and arguments.

    5.7.0release notes

  • Failures in chained tasks are now propagated to the chord body.

    5.7.0release notes

  • Chord error handling is fixed when the body is a chain.

    5.7.0release notes

  • A chord's link and link_error options are now passed to its body only.

    5.7.0release notes

  • silent=True is honored during lazy configuration loading.

    5.7.0release notes

  • Countdown, expiration, and Beat intervals are corrected across daylight saving time transitions.

    5.7.0release notes

  • The database backend keeps the first SUCCESS rather than replacing it with a later result.

    5.7.0release notes

  • The database backend stores task children and stamping metadata with extended results.

    5.7.0release notes

  • The database result backend now honors the configured result_serializer.

    5.7.0release notes

  • A chain link fires once on the last task in eager chains.

    5.7.0release notes

  • Arguments are forwarded correctly through nested chains during eager execution.

    5.7.0release notes

  • EagerResult.get() raises TaskRevokedError after revoke().

    5.7.0release notes

  • Fixes task execution after ETA conversion fails.

    5.7.0release notes

  • A timeout of 0 is honored instead of causing get_many to poll forever.

    5.7.0release notes

  • ignore_result overrides are preserved across retries, and Task.apply respects the task's ignore_result default.

    5.7.0release notes

  • A nested group no longer takes its parent group's id.

    5.7.0release notes

  • Tasks scheduled with an ETA or countdown can now be found by query_task.

    5.7.0release notes

  • Queues.__setitem__() applies default max priority and the default routing key when a queue lacks them.

    5.7.0release notes

  • Redis result compression works when decode_responses is enabled.

    5.7.0release notes

  • Rejected tasks are marked as failed when they are not requeued.

    5.7.0release notes

  • Stored results are now actually compressed when result_compression is configured.

    5.7.0release notes

  • Zero timeouts are honored by the result drainer.

    5.7.0release notes

  • Chords remain alive past result_expires, preventing expiration from prematurely ending chord processing.

    5.7.0release notes

  • The RPC result backend now respects result_extended.

    5.7.0release notes

  • send_task now honors per-task serializer and execution options.

    5.7.0release notes

  • Corrected handling of ignore_result defaults when sending tasks.

    5.7.0release notes

  • send_task ETA and expiration calculations work correctly across daylight saving time transitions.

    5.7.0release notes

  • send_task() no longer overrides ignore_result defaults.

    5.7.0release notes

  • Corrects solar schedule timing across daylight saving time changes.

    5.7.0release notes

  • Fixes revocation of tasks using stamped headers.

    5.7.0release notes

  • A replaced task's callbacks run once when it is replaced with a chain.

    5.7.0release notes

  • A task is no longer marked REVOKED while another worker is running it.

    5.7.0release notes

  • map and starmap apply_async now merge signature options.

    5.7.0release notes

  • Corrected handling of ignore_result defaults when applying tasks.

    5.7.0release notes

  • Fixes retry argument conflicts when switching calling conventions.

    5.7.0release notes

  • A timeout of 0 is now respected rather than treated as an indefinite wait across result-waiting APIs.

    5.7.0release notes

  • The work directory path now expands ~ for spawned workers.

    5.7.0release notes

  • Corrects worker expiration checks during the fall-back daylight saving transition.

    5.7.0release notes

  • Avoids an AttributeError when a process lacks _sentinel_poll.

    5.6.3release notes

  • Provides friendlier status errors in the CLI.

    5.6.3release notes

  • Fixes database backend connection health.

    5.6.3release notes

  • Fixes a worker recursion bug and adds defensive checks for pool_cls.__module__.

    5.6.3release notes

  • A request's ignore_result setting now takes precedence over the task definition.

    5.6.3release notesrelease notes

  • Avoids cycle detection in native delayed delivery.

    5.6.3release notes

  • The database backend filters unsupported SQL engine arguments when using NullPool.

    5.6.3release notes

  • Fixes NameError with TYPE_CHECKING annotations on Python 3.14 and later.

    5.6.3release notes

  • Dispatches chains and callbacks on the deduplication fast path for redelivered tasks.

    5.6.3release notes

  • Fixes workers failing to reconnect after Redis failover.

    5.6.3release notes

  • Fixes a reconnection error in the RPC backend.

    5.6.3release notes

  • Clears the timer while catching an exception.

    5.6.3release notes

  • Fixes a RuntimeError during warm shutdown with eventlet 0.37.0 and later.

    5.6.3release notes

  • Fixes recursive WorkController instantiation and an AttributeError when pool_cls is a string.

    5.6.2release notes

  • Revoked tasks now immediately update backend status to REVOKED.

    5.6.2release notes

  • Broker heartbeats are sent during graceful shutdown.

    5.6.1release notes

  • Database pools are closed only in prefork mode.

    5.6.1release notes

  • Avoids unnecessary Django database connection creation during cleanup.

    5.6.1release notes

  • Fixes ACL authentication when using Redis Sentinel as the broker.

    5.6.1release notes

  • Subscriptions are cleaned up when results are forgotten, fixing a memory leak.

    5.6.0release notes

  • Celery 5.6.0 adds initial support for Python 3.14.

    5.6.0release notes

  • The SQS transport switches back from urllib3 to pycurl due to critical issues affecting SQS users.

    5.6.0release notes

  • Traceback reference cycles are broken during task exception handling so they can be garbage-collected, fixing a memory leak particularly severe on Python 3.11+.

    5.6.0release notes