| 1 |
.. _changelog-4.4: |
| 2 |
|
| 3 |
=============== |
| 4 |
Change history |
| 5 |
=============== |
| 6 |
|
| 7 |
This document contains change notes for bugfix & new features |
| 8 |
in the 4.4.x series, please see :ref:`whatsnew-4.4` for |
| 9 |
an overview of what's new in Celery 4.4. |
| 10 |
|
| 11 |
|
| 12 |
4.4.7 |
| 13 |
======= |
| 14 |
:release-date: 2020-07-31 11.45 P.M UTC+6:00 |
| 15 |
:release-by: Asif Saif Uddin |
| 16 |
|
| 17 |
- Add task_received, task_rejected and task_unknown to signals module. |
| 18 |
- [ES backend] add 401 as safe for retry. |
| 19 |
- treat internal errors as failure. |
| 20 |
- Remove redis fanout caveats. |
| 21 |
- FIX: -A and --args should behave the same. (#6223) |
| 22 |
- Class-based tasks autoretry (#6233) |
| 23 |
- Preserve order of group results with Redis result backend (#6218) |
| 24 |
- Replace future with celery.five Fixes #6250, and use raise_with_context instead of reraise |
| 25 |
- Fix REMAP_SIGTERM=SIGQUIT not working |
| 26 |
- (Fixes#6258) MongoDB: fix for serialization issue (#6259) |
| 27 |
- Make use of ordered sets in Redis opt-in |
| 28 |
- Test, CI, Docker & style and minor doc improvements. |
| 29 |
|
| 30 |
4.4.6 |
| 31 |
======= |
| 32 |
:release-date: 2020-06-24 2.40 P.M UTC+6:00 |
| 33 |
:release-by: Asif Saif Uddin |
| 34 |
|
| 35 |
- Remove autoscale force_scale methods (#6085). |
| 36 |
- Fix autoscale test |
| 37 |
- Pass ping destination to request |
| 38 |
- chord: merge init options with run options |
| 39 |
- Put back KeyValueStoreBackend.set method without state |
| 40 |
- Added --range-prefix option to `celery multi` (#6180) |
| 41 |
- Added as_list function to AsyncResult class (#6179) |
| 42 |
- Fix CassandraBackend error in threads or gevent pool (#6147) |
| 43 |
- Kombu 4.6.11 |
| 44 |
|
| 45 |
|
| 46 |
4.4.5 |
| 47 |
======= |
| 48 |
:release-date: 2020-06-08 12.15 P.M UTC+6:00 |
| 49 |
:release-by: Asif Saif Uddin |
| 50 |
|
| 51 |
- Add missing dependency on future (#6146). |
| 52 |
- ElasticSearch: Retry index if document was deleted between index |
| 53 |
- fix windows build |
| 54 |
- Customize the retry interval of chord_unlock tasks |
| 55 |
- fix multi tests in local |
| 56 |
|
| 57 |
|
| 58 |
4.4.4 |
| 59 |
======= |
| 60 |
:release-date: 2020-06-03 11.00 A.M UTC+6:00 |
| 61 |
:release-by: Asif Saif Uddin |
| 62 |
|
| 63 |
- Fix autoretry_for with explicit retry (#6138). |
| 64 |
- Kombu 4.6.10 |
| 65 |
- Use Django DB max age connection setting (fixes #4116). |
| 66 |
- Add retry on recoverable exception for the backend (#6122). |
| 67 |
- Fix random distribution of jitter for exponential backoff. |
| 68 |
- ElasticSearch: add setting to save meta as json. |
| 69 |
- fix #6136. celery 4.4.3 always trying create /var/run/celery directory. |
| 70 |
- Add task_internal_error signal (#6049). |
| 71 |
|
| 72 |
|
| 73 |
4.4.3 |
| 74 |
======= |
| 75 |
:release-date: 2020-06-01 4.00 P.M UTC+6:00 |
| 76 |
:release-by: Asif Saif Uddin |
| 77 |
|
| 78 |
- Fix backend utf-8 encoding in s3 backend . |
| 79 |
- Kombu 4.6.9 |
| 80 |
- Task class definitions can have retry attributes (#5869) |
| 81 |
- Upgraded pycurl to the latest version that supports wheel. |
| 82 |
- Add uptime to the stats inspect command |
| 83 |
- Fixing issue #6019: unable to use mysql SSL parameters when getting |
| 84 |
- Clean TraceBack to reduce memory leaks for exception task (#6024) |
| 85 |
- exceptions: NotRegistered: fix up language |
| 86 |
- Give up sending a worker-offline message if transport is not connected |
| 87 |
- Add Task to __all__ in celery.__init__.py |
| 88 |
- Ensure a single chain object in a chain does not raise MaximumRecursion |
| 89 |
- Fix autoscale when prefetch_multiplier is 1 |
| 90 |
- Allow start_worker to function without ping task |
| 91 |
- Update celeryd.conf |
| 92 |
- Fix correctly handle configuring the serializer for always_eager mode. |
| 93 |
- Remove doubling of prefetch_count increase when prefetch_multiplier |
| 94 |
- Fix eager function not returning result after retries |
| 95 |
- return retry result if not throw and is_eager |
| 96 |
- Always requeue while worker lost regardless of the redelivered flag |
| 97 |
- Allow relative paths in the filesystem backend (#6070) |
| 98 |
- [Fixed Issue #6017] |
| 99 |
- Avoid race condition due to task duplication. |
| 100 |
- Exceptions must be old-style classes or derived from BaseException |
| 101 |
- Fix windows build (#6104) |
| 102 |
- Add encode to meta task in base.py (#5894) |
| 103 |
- Update time.py to solve the microsecond issues (#5199) |
| 104 |
- Change backend _ensure_not_eager error to warning |
| 105 |
- Add priority support for 'celery.chord_unlock' task (#5766) |
| 106 |
- Change eager retry behaviour |
| 107 |
- Avoid race condition in elasticsearch backend |
| 108 |
- backends base get_many pass READY_STATES arg |
| 109 |
- Add integration tests for Elasticsearch and fix _update |
| 110 |
- feat(backend): Adds cleanup to ArangoDB backend |
| 111 |
- remove jython check |
| 112 |
- fix filesystem backend cannot not be serialized by picked |
| 113 |
|
| 114 |
4.4.0 |
| 115 |
======= |
| 116 |
:release-date: 2019-12-16 9.45 A.M UTC+6:00 |
| 117 |
:release-by: Asif Saif Uddin |
| 118 |
|
| 119 |
- This version is officially supported on CPython 2.7, |
| 120 |
3.5, 3.6, 3.7 & 3.8 and is also supported on PyPy2 & PyPy3. |
| 121 |
- Kombu 4.6.7 |
| 122 |
- Task class definitions can have retry attributes (#5869) |
| 123 |
|
| 124 |
|
| 125 |
4.4.0rc5 |
| 126 |
======== |
| 127 |
:release-date: 2019-12-07 21.05 A.M UTC+6:00 |
| 128 |
:release-by: Asif Saif Uddin |
| 129 |
|
| 130 |
- Kombu 4.6.7 |
| 131 |
- Events bootstep disabled if no events (#5807) |
| 132 |
- SQS - Reject on failure (#5843) |
| 133 |
- Add a concurrency model with ThreadPoolExecutor (#5099) |
| 134 |
- Add auto expiry for DynamoDB backend (#5805) |
| 135 |
- Store extending result in all backends (#5661) |
| 136 |
- Fix a race condition when publishing a very large chord header (#5850) |
| 137 |
- Improve docs and test matrix |
| 138 |
|
| 139 |
4.4.0rc4 |
| 140 |
======== |
| 141 |
:release-date: 2019-11-11 00.45 A.M UTC+6:00 |
| 142 |
:release-by: Asif Saif Uddin |
| 143 |
|
| 144 |
- Kombu 4.6.6 |
| 145 |
- Py-AMQP 2.5.2 |
| 146 |
- Python 3.8 |
| 147 |
- Numerious bug fixes |
| 148 |
- PyPy 7.2 |
| 149 |
|
| 150 |
4.4.0rc3 |
| 151 |
======== |
| 152 |
:release-date: 2019-08-14 23.00 P.M UTC+6:00 |
| 153 |
:release-by: Asif Saif Uddin |
| 154 |
|
| 155 |
- Kombu 4.6.4 |
| 156 |
- Billiard 3.6.1 |
| 157 |
- Py-AMQP 2.5.1 |
| 158 |
- Avoid serializing datetime (#5606) |
| 159 |
- Fix: (group() | group()) not equals single group (#5574) |
| 160 |
- Revert "Broker connection uses the heartbeat setting from app config. |
| 161 |
- Additional file descriptor safety checks. |
| 162 |
- fixed call for null args (#5631) |
| 163 |
- Added generic path for cache backend. |
| 164 |
- Fix Nested group(chain(group)) fails (#5638) |
| 165 |
- Use self.run() when overriding __call__ (#5652) |
| 166 |
- Fix termination of asyncloop (#5671) |
| 167 |
- Fix migrate task to work with both v1 and v2 of the message protocol. |
| 168 |
- Updating task_routes config during runtime now have effect. |
| 169 |
|
| 170 |
|
| 171 |
4.4.0rc2 |
| 172 |
======== |
| 173 |
:release-date: 2019-06-15 4:00 A.M UTC+6:00 |
| 174 |
:release-by: Asif Saif Uddin |
| 175 |
|
| 176 |
- Many bugs and regressions fixed. |
| 177 |
- Kombu 4.6.3 |
| 178 |
|
| 179 |
4.4.0rc1 |
| 180 |
======== |
| 181 |
:release-date: 2019-06-06 1:00 P.M UTC+6:00 |
| 182 |
:release-by: Asif Saif Uddin |
| 183 |
|
| 184 |
|
| 185 |
- Python 3.4 drop |
| 186 |
|
| 187 |
- Kombu 4.6.1 |
| 188 |
|
| 189 |
- Replace deprecated PyMongo methods usage (#5443) |
| 190 |
|
| 191 |
- Pass task request when calling update_state (#5474) |
| 192 |
|
| 193 |
- Fix bug in remaining time calculation in case of DST time change (#5411) |
| 194 |
|
| 195 |
- Fix missing task name when requesting extended result (#5439) |
| 196 |
|
| 197 |
- Fix `collections` import issue on Python 2.7 (#5428) |
| 198 |
|
| 199 |
- handle `AttributeError` in base backend exception deserializer (#5435) |
| 200 |
|
| 201 |
- Make `AsynPool`'s `proc_alive_timeout` configurable (#5476) |
| 202 |
|
| 203 |
- AMQP Support for extended result (#5495) |
| 204 |
|
| 205 |
- Fix SQL Alchemy results backend to work with extended result (#5498) |
| 206 |
|
| 207 |
- Fix restoring of exceptions with required param (#5500) |
| 208 |
|
| 209 |
- Django: Re-raise exception if `ImportError` not caused by missing tasks |
| 210 |
module (#5211) |
| 211 |
|
| 212 |
- Django: fixed a regression putting DB connections in invalid state when |
| 213 |
`CONN_MAX_AGE != 0` (#5515) |
| 214 |
|
| 215 |
- Fixed `OSError` leading to lost connection to broker (#4457) |
| 216 |
|
| 217 |
- Fixed an issue with inspect API unable get details of Request |
| 218 |
|
| 219 |
- Fix mogodb backend authentication (#5527) |
| 220 |
|
| 221 |
- Change column type for Extended Task Meta args/kwargs to LargeBinary |
| 222 |
|
| 223 |
- Handle http_auth in Elasticsearch backend results (#5545) |
| 224 |
|
| 225 |
- Fix task serializer being ignored with `task_always_eager=True` (#5549) |
| 226 |
|
| 227 |
- Fix `task.replace` to work in `.apply() as well as `.apply_async()` (#5540) |
| 228 |
|
| 229 |
- Fix sending of `worker_process_init` signal for solo worker (#5562) |
| 230 |
|
| 231 |
- Fix exception message upacking (#5565) |
| 232 |
|
| 233 |
- Add delay parameter function to beat_schedule (#5558) |
| 234 |
|
| 235 |
- Multiple documentation updates |
| 236 |
|
| 237 |
|
| 238 |
4.3.0 |
| 239 |
===== |
| 240 |
:release-date: 2019-03-31 7:00 P.M UTC+3:00 |
| 241 |
:release-by: Omer Katz |
| 242 |
|
| 243 |
- Added support for broadcasting using a regular expression pattern |
| 244 |
or a glob pattern to multiple Pidboxes. |
| 245 |
|
| 246 |
This allows you to inspect or ping multiple workers at once. |
| 247 |
|
| 248 |
Contributed by **Dmitry Malinovsky** & **Jason Held** |
| 249 |
|
| 250 |
- Added support for PEP 420 namespace packages. |
| 251 |
|
| 252 |
This allows you to load tasks from namespace packages. |
| 253 |
|
| 254 |
Contributed by **Colin Watson** |
| 255 |
|
| 256 |
- Added :setting:`acks_on_failure_or_timeout` as a setting instead of |
| 257 |
a task only option. |
| 258 |
|
| 259 |
This was missing from the original PR but now added for completeness. |
| 260 |
|
| 261 |
Contributed by **Omer Katz** |
| 262 |
|
| 263 |
- Added the :signal:`task_received` signal. |
| 264 |
|
| 265 |
Contributed by **Omer Katz** |
| 266 |
|
| 267 |
- Fixed a crash of our CLI that occurred for everyone using Python < 3.6. |
| 268 |
|
| 269 |
The crash was introduced in `acd6025 <https://github.com/celery/celery/commit/acd6025b7dc4db112a31020686fc8b15e1722c67>`_ |
| 270 |
by using the :class:`ModuleNotFoundError` exception which was introduced |
| 271 |
in Python 3.6. |
| 272 |
|
| 273 |
Contributed by **Omer Katz** |
| 274 |
|
| 275 |
- Fixed a crash that occurred when using the Redis result backend |
| 276 |
while the :setting:`result_expires` is set to None. |
| 277 |
|
| 278 |
Contributed by **Toni Ruža** & **Omer Katz** |
| 279 |
|
| 280 |
- Added support the `DNS seedlist connection format <https://docs.mongodb.com/manual/reference/connection-string/#dns-seedlist-connection-format>`_ |
| 281 |
for the MongoDB result backend. |
| 282 |
|
| 283 |
This requires the `dnspython` package which will be installed by default |
| 284 |
when installing the dependencies for the MongoDB result backend. |
| 285 |
|
| 286 |
Contributed by **George Psarakis** |
| 287 |
|
| 288 |
- Bump the minimum eventlet version to 0.24.1. |
| 289 |
|
| 290 |
Contributed by **George Psarakis** |
| 291 |
|
| 292 |
- Replace the `msgpack-python` package with `msgpack`. |
| 293 |
|
| 294 |
We're no longer using the deprecated package. |
| 295 |
See our :ref:`important notes <v430-important>` for this release |
| 296 |
for further details on how to upgrade. |
| 297 |
|
| 298 |
Contributed by **Daniel Hahler** |
| 299 |
|
| 300 |
- Allow scheduling error handlers which are not registered tasks in the current |
| 301 |
worker. |
| 302 |
|
| 303 |
These kind of error handlers are now possible: |
| 304 |
|
| 305 |
.. code-block:: python |
| 306 |
|
| 307 |
from celery import Signature |
| 308 |
Signature( |
| 309 |
'bar', args=['foo'], |
| 310 |
link_error=Signature('msg.err', queue='msg') |
| 311 |
).apply_async() |
| 312 |
|
| 313 |
- Additional fixes and enhancements to the SSL support of |
| 314 |
the Redis broker and result backend. |
| 315 |
|
| 316 |
Contributed by **Jeremy Cohen** |
| 317 |
|
| 318 |
Code Cleanups, Test Coverage & CI Improvements by: |
| 319 |
|
| 320 |
- **Omer Katz** |
| 321 |
- **Florian Chardin** |
| 322 |
|
| 323 |
Documentation Fixes by: |
| 324 |
|
| 325 |
- **Omer Katz** |
| 326 |
- **Samuel Huang** |
| 327 |
- **Amir Hossein Saeid Mehr** |
| 328 |
- **Dmytro Litvinov** |
| 329 |
|
| 330 |
4.3.0 RC2 |
| 331 |
========= |
| 332 |
:release-date: 2019-03-03 9:30 P.M UTC+2:00 |
| 333 |
:release-by: Omer Katz |
| 334 |
|
| 335 |
- **Filesystem Backend**: Added meaningful error messages for filesystem backend. |
| 336 |
|
| 337 |
Contributed by **Lars Rinn** |
| 338 |
|
| 339 |
- **New Result Backend**: Added the ArangoDB backend. |
| 340 |
|
| 341 |
Contributed by **Dilip Vamsi Moturi** |
| 342 |
|
| 343 |
- **Django**: Prepend current working directory instead of appending so that |
| 344 |
the project directory will have precedence over system modules as expected. |
| 345 |
|
| 346 |
Contributed by **Antonin Delpeuch** |
| 347 |
|
| 348 |
- Bump minimum py-redis version to 3.2.0. |
| 349 |
|
| 350 |
Due to multiple bugs in earlier versions of py-redis that were causing |
| 351 |
issues for Celery, we were forced to bump the minimum required version to 3.2.0. |
| 352 |
|
| 353 |
Contributed by **Omer Katz** |
| 354 |
|
| 355 |
- **Dependencies**: Bump minimum required version of Kombu to 4.4 |
| 356 |
|
| 357 |
Contributed by **Omer Katz** |
| 358 |
|
| 359 |
4.3.0 RC1 |
| 360 |
========= |
| 361 |
:release-date: 2019-02-20 5:00 PM IST |
| 362 |
:release-by: Omer Katz |
| 363 |
|
| 364 |
- **Canvas**: :meth:`celery.chain.apply` does not ignore keyword arguments anymore when |
| 365 |
applying the chain. |
| 366 |
|
| 367 |
Contributed by **Korijn van Golen** |
| 368 |
|
| 369 |
- **Result Set**: Don't attempt to cache results in a :class:`celery.result.ResultSet`. |
| 370 |
|
| 371 |
During a join, the results cache was populated using :meth:`celery.result.ResultSet.get`, if one of the results |
| 372 |
contains an exception, joining unexpectedly failed. |
| 373 |
|
| 374 |
The results cache is now removed. |
| 375 |
|
| 376 |
Contributed by **Derek Harland** |
| 377 |
|
| 378 |
- **Application**: :meth:`celery.Celery.autodiscover_tasks` now attempts to import the package itself |
| 379 |
when the `related_name` keyword argument is `None`. |
| 380 |
|
| 381 |
Contributed by **Alex Ioannidis** |
| 382 |
|
| 383 |
- **Windows Support**: On Windows 10, stale PID files prevented celery beat to run. |
| 384 |
We now remove them when a :class:`SystemExit` is raised. |
| 385 |
|
| 386 |
Contributed by **:github_user:`na387`** |
| 387 |
|
| 388 |
- **Task**: Added the new :setting:`task_acks_on_failure_or_timeout` setting. |
| 389 |
|
| 390 |
Acknowledging SQS messages on failure or timing out makes it impossible to use |
| 391 |
dead letter queues. |
| 392 |
|
| 393 |
We introduce the new option acks_on_failure_or_timeout, |
| 394 |
to ensure we can totally fallback on native SQS message lifecycle, |
| 395 |
using redeliveries for retries (in case of slow processing or failure) |
| 396 |
and transitions to dead letter queue after defined number of times. |
| 397 |
|
| 398 |
Contributed by **Mario Kostelac** |
| 399 |
|
| 400 |
- **RabbitMQ Broker**: Adjust HA headers to work on RabbitMQ 3.x. |
| 401 |
|
| 402 |
This change also means we're ending official support for RabbitMQ 2.x. |
| 403 |
|
| 404 |
Contributed by **Asif Saif Uddin** |
| 405 |
|
| 406 |
- **Command Line**: Improve :program:`celery update` error handling. |
| 407 |
|
| 408 |
Contributed by **Federico Bond** |
| 409 |
|
| 410 |
- **Canvas**: Support chords with :setting:`task_always_eager` set to `True`. |
| 411 |
|
| 412 |
Contributed by **Axel Haustant** |
| 413 |
|
| 414 |
- **Result Backend**: Optionally store task properties in result backend. |
| 415 |
|
| 416 |
Setting the :setting:`result_extended` configuration option to `True` enables |
| 417 |
storing additional task properties in the result backend. |
| 418 |
|
| 419 |
Contributed by **John Arnold** |
| 420 |
|
| 421 |
- **Couchbase Result Backend**: Allow the Couchbase result backend to |
| 422 |
automatically detect the serialization format. |
| 423 |
|
| 424 |
Contributed by **Douglas Rohde** |
| 425 |
|
| 426 |
- **New Result Backend**: Added the Azure Block Blob Storage result backend. |
| 427 |
|
| 428 |
The backend is implemented on top of the azure-storage library which |
| 429 |
uses Azure Blob Storage for a scalable low-cost PaaS backend. |
| 430 |
|
| 431 |
The backend was load tested via a simple nginx/gunicorn/sanic app hosted |
| 432 |
on a DS4 virtual machine (4 vCores, 16 GB RAM) and was able to handle |
| 433 |
600+ concurrent users at ~170 RPS. |
| 434 |
|
| 435 |
The commit also contains a live end-to-end test to facilitate |
| 436 |
verification of the backend functionality. The test is activated by |
| 437 |
setting the `AZUREBLOCKBLOB_URL` environment variable to |
| 438 |
`azureblockblob://{ConnectionString}` where the value for |
| 439 |
`ConnectionString` can be found in the `Access Keys` pane of a Storage |
| 440 |
Account resources in the Azure Portal. |
| 441 |
|
| 442 |
Contributed by **Clemens Wolff** |
| 443 |
|
| 444 |
- **Task**: :meth:`celery.app.task.update_state` now accepts keyword arguments. |
| 445 |
|
| 446 |
This allows passing extra fields to the result backend. |
| 447 |
These fields are unused by default but custom result backends can use them |
| 448 |
to determine how to store results. |
| 449 |
|
| 450 |
Contributed by **Christopher Dignam** |
| 451 |
|
| 452 |
- Gracefully handle consumer :class:`kombu.exceptions.DecodeError`. |
| 453 |
|
| 454 |
When using the v2 protocol the worker no longer crashes when the consumer |
| 455 |
encounters an error while decoding a message. |
| 456 |
|
| 457 |
Contributed by **Steven Sklar** |
| 458 |
|
| 459 |
- **Deployment**: Fix init.d service stop. |
| 460 |
|
| 461 |
Contributed by **Marcus McHale** |
| 462 |
|
| 463 |
- **Django**: Drop support for Django < 1.11. |
| 464 |
|
| 465 |
Contributed by **Asif Saif Uddin** |
| 466 |
|
| 467 |
- **Django**: Remove old djcelery loader. |
| 468 |
|
| 469 |
Contributed by **Asif Saif Uddin** |
| 470 |
|
| 471 |
- **Result Backend**: :class:`celery.worker.request.Request` now passes |
| 472 |
:class:`celery.app.task.Context` to the backend's store_result functions. |
| 473 |
|
| 474 |
Since the class currently passes `self` to these functions, |
| 475 |
revoking a task resulted in corrupted task result data when |
| 476 |
django-celery-results was used. |
| 477 |
|
| 478 |
Contributed by **Kiyohiro Yamaguchi** |
| 479 |
|
| 480 |
- **Worker**: Retry if the heartbeat connection dies. |
| 481 |
|
| 482 |
Previously, we keep trying to write to the broken connection. |
| 483 |
This results in a memory leak because the event dispatcher will keep appending |
| 484 |
the message to the outbound buffer. |
| 485 |
|
| 486 |
Contributed by **Raf Geens** |
| 487 |
|
| 488 |
- **Celery Beat**: Handle microseconds when scheduling. |
| 489 |
|
| 490 |
Contributed by **K Davis** |
| 491 |
|
| 492 |
- **Asynpool**: Fixed deadlock when closing socket. |
| 493 |
|
| 494 |
Upon attempting to close a socket, :class:`celery.concurrency.asynpool.AsynPool` |
| 495 |
only removed the queue writer from the hub but did not remove the reader. |
| 496 |
This led to a deadlock on the file descriptor |
| 497 |
and eventually the worker stopped accepting new tasks. |
| 498 |
|
| 499 |
We now close both the reader and the writer file descriptors in a single loop |
| 500 |
iteration which prevents the deadlock. |
| 501 |
|
| 502 |
Contributed by **Joshua Engelman** |
| 503 |
|
| 504 |
- **Celery Beat**: Correctly consider timezone when calculating timestamp. |
| 505 |
|
| 506 |
Contributed by **:github_user:`yywing`** |
| 507 |
|
| 508 |
- **Celery Beat**: :meth:`celery.beat.Scheduler.schedules_equal` can now handle |
| 509 |
either arguments being a `None` value. |
| 510 |
|
| 511 |
Contributed by **:github_user:` ratson`** |
| 512 |
|
| 513 |
- **Documentation/Sphinx**: Fixed Sphinx support for shared_task decorated functions. |
| 514 |
|
| 515 |
Contributed by **Jon Banafato** |
| 516 |
|
| 517 |
- **New Result Backend**: Added the CosmosDB result backend. |
| 518 |
|
| 519 |
This change adds a new results backend. |
| 520 |
The backend is implemented on top of the pydocumentdb library which uses |
| 521 |
Azure CosmosDB for a scalable, globally replicated, high-performance, |
| 522 |
low-latency and high-throughput PaaS backend. |
| 523 |
|
| 524 |
Contributed by **Clemens Wolff** |
| 525 |
|
| 526 |
- **Application**: Added configuration options to allow separate multiple apps |
| 527 |
to run on a single RabbitMQ vhost. |
| 528 |
|
| 529 |
The newly added :setting:`event_exchange` and :setting:`control_exchange` |
| 530 |
configuration options allow users to use separate Pidbox exchange |
| 531 |
and a separate events exchange. |
| 532 |
|
| 533 |
This allow different Celery applications to run separately on the same vhost. |
| 534 |
|
| 535 |
Contributed by **Artem Vasilyev** |
| 536 |
|
| 537 |
- **Result Backend**: Forget parent result metadata when forgetting |
| 538 |
a result. |
| 539 |
|
| 540 |
Contributed by **:github_user:`tothegump`** |
| 541 |
|
| 542 |
- **Task** Store task arguments inside :class:`celery.exceptions.MaxRetriesExceededError`. |
| 543 |
|
| 544 |
Contributed by **Anthony Ruhier** |
| 545 |
|
| 546 |
- **Result Backend**: Added the :setting:`result_accept_content` setting. |
| 547 |
|
| 548 |
This feature allows to configure different accepted content for the result |
| 549 |
backend. |
| 550 |
|
| 551 |
A special serializer (`auth`) is used for signed messaging, |
| 552 |
however the result_serializer remains in json, because we don't want encrypted |
| 553 |
content in our result backend. |
| 554 |
|
| 555 |
To accept unsigned content from the result backend, |
| 556 |
we introduced this new configuration option to specify the |
| 557 |
accepted content from the backend. |
| 558 |
|
| 559 |
- **Canvas**: Fixed error callback processing for class based tasks. |
| 560 |
|
| 561 |
Contributed by **Victor Mireyev** |
| 562 |
|
| 563 |
- **New Result Backend**: Added the S3 result backend. |
| 564 |
|
| 565 |
Contributed by **Florian Chardin** |
| 566 |
|
| 567 |
- **Task**: Added support for Cythonized Celery tasks. |
| 568 |
|
| 569 |
Contributed by **Andrey Skabelin** |
| 570 |
|
| 571 |
- **Riak Result Backend**: Warn Riak backend users for possible Python 3.7 incompatibilities. |
| 572 |
|
| 573 |
Contributed by **George Psarakis** |
| 574 |
|
| 575 |
- **Python Runtime**: Added Python 3.7 support. |
| 576 |
|
| 577 |
Contributed by **Omer Katz** & **Asif Saif Uddin** |
| 578 |
|
| 579 |
- **Auth Serializer**: Revamped the auth serializer. |
| 580 |
|
| 581 |
The auth serializer received a complete overhaul. |
| 582 |
It was previously horribly broken. |
| 583 |
|
| 584 |
We now depend on cryptography instead of pyOpenSSL for this serializer. |
| 585 |
|
| 586 |
- **Command Line**: :program:`celery report` now reports kernel version along |
| 587 |
with other platform details. |
| 588 |
|
| 589 |
Contributed by **Omer Katz** |
| 590 |
|
| 591 |
- **Canvas**: Fixed chords with chains which include sub chords in a group. |
| 592 |
|
| 593 |
Celery now correctly executes the last task in these types of canvases: |
| 594 |
|
| 595 |
.. code-block:: python |
| 596 |
|
| 597 |
c = chord( |
| 598 |
group([ |
| 599 |
chain( |
| 600 |
dummy.si(), |
| 601 |
chord( |
| 602 |
group([dummy.si(), dummy.si()]), |
| 603 |
dummy.si(), |
| 604 |
), |
| 605 |
), |
| 606 |
chain( |
| 607 |
dummy.si(), |
| 608 |
chord( |
| 609 |
group([dummy.si(), dummy.si()]), |
| 610 |
dummy.si(), |
| 611 |
), |
| 612 |
), |
| 613 |
]), |
| 614 |
dummy.si() |
| 615 |
) |
| 616 |
|
| 617 |
c.delay().get() |
| 618 |
|
| 619 |
Contributed by **Maximilien Cuony** |
| 620 |
|
| 621 |
- **Canvas**: Complex canvases with error callbacks no longer raises an :class:`AttributeError`. |
| 622 |
|
| 623 |
Very complex canvases such as `this <https://github.com/merchise/xopgi.base/blob/6634819ad5c701c04bc9baa5c527449070843b71/xopgi/xopgi_cdr/cdr_agent.py#L181>`_ |
| 624 |
no longer raise an :class:`AttributeError` which prevents constructing them. |
| 625 |
|
| 626 |
We do not know why this bug occurs yet. |
| 627 |
|
| 628 |
Contributed by **Manuel Vázquez Acosta** |
| 629 |
|
| 630 |
- **Command Line**: Added proper error messages in cases where app cannot be loaded. |
| 631 |
|
| 632 |
Previously, celery crashed with an exception. |
| 633 |
|
| 634 |
We now print a proper error message. |
| 635 |
|
| 636 |
Contributed by **Omer Katz** |
| 637 |
|
| 638 |
- **Task**: Added the :setting:`task_default_priority` setting. |
| 639 |
|
| 640 |
You can now set the default priority of a task using |
| 641 |
the :setting:`task_default_priority` setting. |
| 642 |
The setting's value will be used if no priority is provided for a specific |
| 643 |
task. |
| 644 |
|
| 645 |
Contributed by **:github_user:`madprogrammer`** |
| 646 |
|
| 647 |
- **Dependencies**: Bump minimum required version of Kombu to 4.3 |
| 648 |
and Billiard to 3.6. |
| 649 |
|
| 650 |
Contributed by **Asif Saif Uddin** |
| 651 |
|
| 652 |
- **Result Backend**: Fix memory leak. |
| 653 |
|
| 654 |
We reintroduced weak references to bound methods for AsyncResult callback promises, |
| 655 |
after adding full weakref support for Python 2 in `vine <https://github.com/celery/vine/tree/v1.2.0>`_. |
| 656 |
More details can be found in `celery/celery#4839 <https://github.com/celery/celery/pull/4839>`_. |
| 657 |
|
| 658 |
Contributed by **George Psarakis** and **:github_user:`monsterxx03`**. |
| 659 |
|
| 660 |
- **Task Execution**: Fixed roundtrip serialization for eager tasks. |
| 661 |
|
| 662 |
When doing the roundtrip serialization for eager tasks, |
| 663 |
the task serializer will always be JSON unless the `serializer` argument |
| 664 |
is present in the call to :meth:`celery.app.task.Task.apply_async`. |
| 665 |
If the serializer argument is present but is `'pickle'`, |
| 666 |
an exception will be raised as pickle-serialized objects |
| 667 |
cannot be deserialized without specifying to `serialization.loads` |
| 668 |
what content types should be accepted. |
| 669 |
The Producer's `serializer` seems to be set to `None`, |
| 670 |
causing the default to JSON serialization. |
| 671 |
|
| 672 |
We now continue to use (in order) the `serializer` argument to :meth:`celery.app.task.Task.apply_async`, |
| 673 |
if present, or the `Producer`'s serializer if not `None`. |
| 674 |
If the `Producer`'s serializer is `None`, |
| 675 |
it will use the Celery app's `task_serializer` configuration entry as the serializer. |
| 676 |
|
| 677 |
Contributed by **Brett Jackson** |
| 678 |
|
| 679 |
- **Redis Result Backend**: The :class:`celery.backends.redis.ResultConsumer` class no longer assumes |
| 680 |
:meth:`celery.backends.redis.ResultConsumer.start` to be called before |
| 681 |
:meth:`celery.backends.redis.ResultConsumer.drain_events`. |
| 682 |
|
| 683 |
This fixes a race condition when using the Gevent workers pool. |
| 684 |
|
| 685 |
Contributed by **Noam Kush** |
| 686 |
|
| 687 |
- **Task**: Added the :setting:`task_inherit_parent_priority` setting. |
| 688 |
|
| 689 |
Setting the :setting:`task_inherit_parent_priority` configuration option to |
| 690 |
`True` will make Celery tasks inherit the priority of the previous task |
| 691 |
linked to it. |
| 692 |
|
| 693 |
Examples: |
| 694 |
|
| 695 |
.. code-block:: python |
| 696 |
|
| 697 |
c = celery.chain( |
| 698 |
add.s(2), # priority=None |
| 699 |
add.s(3).set(priority=5), # priority=5 |
| 700 |
add.s(4), # priority=5 |
| 701 |
add.s(5).set(priority=3), # priority=3 |
| 702 |
add.s(6), # priority=3 |
| 703 |
) |
| 704 |
|
| 705 |
.. code-block:: python |
| 706 |
|
| 707 |
@app.task(bind=True) |
| 708 |
def child_task(self): |
| 709 |
pass |
| 710 |
|
| 711 |
@app.task(bind=True) |
| 712 |
def parent_task(self): |
| 713 |
child_task.delay() |
| 714 |
|
| 715 |
# child_task will also have priority=5 |
| 716 |
parent_task.apply_async(args=[], priority=5) |
| 717 |
|
| 718 |
Contributed by **:github_user:`madprogrammer`** |
| 719 |
|
| 720 |
- **Canvas**: Added the :setting:`result_chord_join_timeout` setting. |
| 721 |
|
| 722 |
Previously, :meth:`celery.result.GroupResult.join` had a fixed timeout of 3 |
| 723 |
seconds. |
| 724 |
|
| 725 |
The :setting:`result_chord_join_timeout` setting now allows you to change it. |
| 726 |
|
| 727 |
Contributed by **:github_user:`srafehi`** |
| 728 |
|
| 729 |
Code Cleanups, Test Coverage & CI Improvements by: |
| 730 |
|
| 731 |
- **Jon Dufresne** |
| 732 |
- **Asif Saif Uddin** |
| 733 |
- **Omer Katz** |
| 734 |
- **Brett Jackson** |
| 735 |
- **Bruno Alla** |
| 736 |
- **:github_user:`tothegump`** |
| 737 |
- **Bojan Jovanovic** |
| 738 |
- **Florian Chardin** |
| 739 |
- **:github_user:`walterqian`** |
| 740 |
- **Fabian Becker** |
| 741 |
- **Lars Rinn** |
| 742 |
- **:github_user:`madprogrammer`** |
| 743 |
- **Ciaran Courtney** |
| 744 |
|
| 745 |
Documentation Fixes by: |
| 746 |
|
| 747 |
- **Lewis M. Kabui** |
| 748 |
- **Dash Winterson** |
| 749 |
- **Shanavas M** |
| 750 |
- **Brett Randall** |
| 751 |
- **Przemysław Suliga** |
| 752 |
- **Joshua Schmid** |
| 753 |
- **Asif Saif Uddin** |
| 754 |
- **Xiaodong** |
| 755 |
- **Vikas Prasad** |
| 756 |
- **Jamie Alessio** |
| 757 |
- **Lars Kruse** |
| 758 |
- **Guilherme Caminha** |
| 759 |
- **Andrea Rabbaglietti** |
| 760 |
- **Itay Bittan** |
| 761 |
- **Noah Hall** |
| 762 |
- **Peng Weikang** |
| 763 |
- **Mariatta Wijaya** |
| 764 |
- **Ed Morley** |
| 765 |
- **Paweł Adamczak** |
| 766 |
- **:github_user:`CoffeeExpress`** |
| 767 |
- **:github_user:`aviadatsnyk`** |
| 768 |
- **Brian Schrader** |
| 769 |
- **Josue Balandrano Coronel** |
| 770 |
- **Tom Clancy** |
| 771 |
- **Sebastian Wojciechowski** |
| 772 |
- **Meysam Azad** |
| 773 |
- **Willem Thiart** |
| 774 |
- **Charles Chan** |
| 775 |
- **Omer Katz** |
| 776 |
- **Milind Shakya** |