| 1 |
.. _changelog-3.1: |
| 2 |
|
| 3 |
================ |
| 4 |
Change history |
| 5 |
================ |
| 6 |
|
| 7 |
This document contains change notes for bugfix releases in the 3.1.x series |
| 8 |
(Cipater), please see :ref:`whatsnew-3.1` for an overview of what's |
| 9 |
new in Celery 3.1. |
| 10 |
|
| 11 |
.. _version-3.1.26: |
| 12 |
|
| 13 |
3.1.26 |
| 14 |
====== |
| 15 |
:release-date: 2018-23-03 16:00 PM IST |
| 16 |
:release-by: Omer Katz |
| 17 |
|
| 18 |
- Fixed a crash caused by tasks cycling between Celery 3 and Celery 4 workers. |
| 19 |
|
| 20 |
.. _version-3.1.25: |
| 21 |
|
| 22 |
3.1.25 |
| 23 |
====== |
| 24 |
:release-date: 2016-10-10 12:00 PM PDT |
| 25 |
:release-by: Ask Solem |
| 26 |
|
| 27 |
- **Requirements** |
| 28 |
|
| 29 |
- Now depends on :ref:`Kombu 3.0.37 <kombu:version-3.0.37>` |
| 30 |
|
| 31 |
- Fixed problem with chords in group introduced in 3.1.24 (Issue #3504). |
| 32 |
|
| 33 |
.. _version-3.1.24: |
| 34 |
|
| 35 |
3.1.24 |
| 36 |
====== |
| 37 |
:release-date: 2016-09-30 04:21 PM PDT |
| 38 |
:release-by: Ask Solem |
| 39 |
|
| 40 |
- **Requirements** |
| 41 |
|
| 42 |
- Now depends on :ref:`Kombu 3.0.36 <kombu:version-3.0.36>`. |
| 43 |
|
| 44 |
- Now supports Task protocol 2 from the future 4.0 release. |
| 45 |
|
| 46 |
Workers running 3.1.24 are now able to process messages |
| 47 |
sent using the `new task message protocol`_ to be introduced |
| 48 |
in Celery 4.0. |
| 49 |
|
| 50 |
Users upgrading to Celery 4.0 when this is released are encouraged |
| 51 |
to upgrade to this version as an intermediate step, as this |
| 52 |
means workers not yet upgraded will be able to process |
| 53 |
messages from clients/workers running 4.0. |
| 54 |
|
| 55 |
.. _`new task message protocol`: |
| 56 |
https://docs.celeryq.dev/en/master/internals/protocol.html#version-2 |
| 57 |
|
| 58 |
- ``Task.send_events`` can now be set to disable sending of events |
| 59 |
for that task only. |
| 60 |
|
| 61 |
Example when defining the task: |
| 62 |
|
| 63 |
.. code-block:: python |
| 64 |
|
| 65 |
@app.task(send_events=False) |
| 66 |
def add(x, y): |
| 67 |
return x + y |
| 68 |
|
| 69 |
- **Utils**: Fixed compatibility with recent :pypi:`psutil` versions |
| 70 |
(Issue #3262). |
| 71 |
|
| 72 |
- **Canvas**: Chord now forwards partial arguments to its subtasks. |
| 73 |
|
| 74 |
Fix contributed by Tayfun Sen. |
| 75 |
|
| 76 |
- **App**: Arguments to app such as ``backend``, ``broker``, etc |
| 77 |
are now pickled and sent to the child processes on Windows. |
| 78 |
|
| 79 |
Fix contributed by Jeremy Zafran. |
| 80 |
|
| 81 |
- **Deployment**: Generic init scripts now supports being symlinked |
| 82 |
in runlevel directories (Issue #3208). |
| 83 |
|
| 84 |
- **Deployment**: Updated CentOS scripts to work with CentOS 7. |
| 85 |
|
| 86 |
Contributed by Joe Sanford. |
| 87 |
|
| 88 |
- **Events**: The curses monitor no longer crashes when the |
| 89 |
result of a task is empty. |
| 90 |
|
| 91 |
Fix contributed by Dongweiming. |
| 92 |
|
| 93 |
- **Worker**: ``repr(worker)`` would crash when called early |
| 94 |
in the startup process (Issue #2514). |
| 95 |
|
| 96 |
- **Tasks**: GroupResult now defines __bool__ and __nonzero__. |
| 97 |
|
| 98 |
This is to fix an issue where a ResultSet or GroupResult with an empty |
| 99 |
result list are not properly tupled with the as_tuple() method when it is |
| 100 |
a parent result. This is due to the as_tuple() method performing a logical |
| 101 |
and operation on the ResultSet. |
| 102 |
|
| 103 |
Fix contributed by Colin McIntosh. |
| 104 |
|
| 105 |
- **Worker**: Fixed wrong values in autoscale related logging message. |
| 106 |
|
| 107 |
Fix contributed by ``@raducc``. |
| 108 |
|
| 109 |
- Documentation improvements by |
| 110 |
|
| 111 |
* Alexandru Chirila |
| 112 |
* Michael Aquilina |
| 113 |
* Mikko Ekström |
| 114 |
* Mitchel Humpherys |
| 115 |
* Thomas A. Neil |
| 116 |
* Tiago Moreira Vieira |
| 117 |
* Yuriy Syrovetskiy |
| 118 |
* ``@dessant`` |
| 119 |
|
| 120 |
.. _version-3.1.23: |
| 121 |
|
| 122 |
3.1.23 |
| 123 |
====== |
| 124 |
:release-date: 2016-03-09 06:00 P.M PST |
| 125 |
:release-by: Ask Solem |
| 126 |
|
| 127 |
- **Programs**: Last release broke support for the ``--hostnmame`` argument |
| 128 |
to :program:`celery multi` and :program:`celery worker --detach` |
| 129 |
(Issue #3103). |
| 130 |
|
| 131 |
- **Results**: MongoDB result backend could crash the worker at startup |
| 132 |
if not configured using an URL. |
| 133 |
|
| 134 |
.. _version-3.1.22: |
| 135 |
|
| 136 |
3.1.22 |
| 137 |
====== |
| 138 |
:release-date: 2016-03-07 01:30 P.M PST |
| 139 |
:release-by: Ask Solem |
| 140 |
|
| 141 |
- **Programs**: The worker would crash immediately on startup on |
| 142 |
``backend.as_uri()`` when using some result backends (Issue #3094). |
| 143 |
|
| 144 |
- **Programs**: :program:`celery multi`/:program:`celery worker --detach` |
| 145 |
would create an extraneous logfile including literal formats (e.g. ``%I``) |
| 146 |
in the filename (Issue #3096). |
| 147 |
|
| 148 |
.. _version-3.1.21: |
| 149 |
|
| 150 |
3.1.21 |
| 151 |
====== |
| 152 |
:release-date: 2016-03-04 11:16 a.m. PST |
| 153 |
:release-by: Ask Solem |
| 154 |
|
| 155 |
- **Requirements** |
| 156 |
|
| 157 |
- Now depends on :ref:`Kombu 3.0.34 <kombu:version-3.0.34>`. |
| 158 |
|
| 159 |
- Now depends on :mod:`billiard` 3.3.0.23. |
| 160 |
|
| 161 |
- **Prefork pool**: Fixes 100% CPU loop on Linux :manpage:`epoll` |
| 162 |
(Issue #1845). |
| 163 |
|
| 164 |
Also potential fix for: Issue #2142, Issue #2606 |
| 165 |
|
| 166 |
- **Prefork pool**: Fixes memory leak related to processes exiting |
| 167 |
(Issue #2927). |
| 168 |
|
| 169 |
- **Worker**: Fixes crash at start-up when trying to censor passwords |
| 170 |
in MongoDB and Cache result backend URLs (Issue #3079, Issue #3045, |
| 171 |
Issue #3049, Issue #3068, Issue #3073). |
| 172 |
|
| 173 |
Fix contributed by Maxime Verger. |
| 174 |
|
| 175 |
- **Task**: An exception is now raised if countdown/expires is less |
| 176 |
than -2147483648 (Issue #3078). |
| 177 |
|
| 178 |
- **Programs**: :program:`celery shell --ipython` now compatible with newer |
| 179 |
:pypi:`IPython` versions. |
| 180 |
|
| 181 |
- **Programs**: The DuplicateNodeName warning emitted by inspect/control |
| 182 |
now includes a list of the node names returned. |
| 183 |
|
| 184 |
Contributed by Sebastian Kalinowski. |
| 185 |
|
| 186 |
- **Utils**: The ``.discard(item)`` method of |
| 187 |
:class:`~celery.utils.collections.LimitedSet` didn't actually remove the item |
| 188 |
(Issue #3087). |
| 189 |
|
| 190 |
Fix contributed by Dave Smith. |
| 191 |
|
| 192 |
- **Worker**: Node name formatting now emits less confusing error message |
| 193 |
for unmatched format keys (Issue #3016). |
| 194 |
|
| 195 |
- **Results**: RPC/AMQP backends: Fixed deserialization of JSON exceptions |
| 196 |
(Issue #2518). |
| 197 |
|
| 198 |
Fix contributed by Allard Hoeve. |
| 199 |
|
| 200 |
- **Prefork pool**: The `process inqueue damaged` error message now includes |
| 201 |
the original exception raised. |
| 202 |
|
| 203 |
- **Documentation**: Includes improvements by: |
| 204 |
|
| 205 |
- Jeff Widman. |
| 206 |
|
| 207 |
.. _version-3.1.20: |
| 208 |
|
| 209 |
3.1.20 |
| 210 |
====== |
| 211 |
:release-date: 2016-01-22 06:50 p.m. UTC |
| 212 |
:release-by: Ask Solem |
| 213 |
|
| 214 |
- **Requirements** |
| 215 |
|
| 216 |
- Now depends on :ref:`Kombu 3.0.33 <kombu:version-3.0.33>`. |
| 217 |
|
| 218 |
- Now depends on :mod:`billiard` 3.3.0.22. |
| 219 |
|
| 220 |
Includes binary wheels for Microsoft Windows x86 and x86_64! |
| 221 |
|
| 222 |
- **Task**: Error emails now uses ``utf-8`` character set by default |
| 223 |
(Issue #2737). |
| 224 |
|
| 225 |
- **Task**: Retry now forwards original message headers (Issue #3017). |
| 226 |
|
| 227 |
- **Worker**: Bootsteps can now hook into ``on_node_join``/``leave``/``lost``. |
| 228 |
|
| 229 |
See :ref:`extending-consumer-attributes` for an example. |
| 230 |
|
| 231 |
- **Events**: Fixed handling of DST timezones (Issue #2983). |
| 232 |
|
| 233 |
- **Results**: Redis backend stopped respecting certain settings. |
| 234 |
|
| 235 |
Contributed by Jeremy Llewellyn. |
| 236 |
|
| 237 |
- **Results**: Database backend now properly supports JSON exceptions |
| 238 |
(Issue #2441). |
| 239 |
|
| 240 |
- **Results**: Redis ``new_join`` didn't properly call task errbacks on chord |
| 241 |
error (Issue #2796). |
| 242 |
|
| 243 |
- **Results**: Restores Redis compatibility with Python :pypi:`redis` < 2.10.0 |
| 244 |
(Issue #2903). |
| 245 |
|
| 246 |
- **Results**: Fixed rare issue with chord error handling (Issue #2409). |
| 247 |
|
| 248 |
- **Tasks**: Using queue-name values in :setting:`CELERY_ROUTES` now works |
| 249 |
again (Issue #2987). |
| 250 |
|
| 251 |
- **General**: Result backend password now sanitized in report output |
| 252 |
(Issue #2812, Issue #2004). |
| 253 |
|
| 254 |
- **Configuration**: Now gives helpful error message when the result backend |
| 255 |
configuration points to a module, and not a class (Issue #2945). |
| 256 |
|
| 257 |
- **Results**: Exceptions sent by JSON serialized workers are now properly |
| 258 |
handled by pickle configured workers. |
| 259 |
|
| 260 |
- **Programs**: ``celery control autoscale`` now works (Issue #2950). |
| 261 |
|
| 262 |
- **Programs**: ``celery beat --detached`` now runs after fork callbacks. |
| 263 |
|
| 264 |
- **General**: Fix for LRU cache implementation on Python 3.5 (Issue #2897). |
| 265 |
|
| 266 |
Contributed by Dennis Brakhane. |
| 267 |
|
| 268 |
Python 3.5's ``OrderedDict`` doesn't allow mutation while it is being |
| 269 |
iterated over. This breaks "update" if it is called with a dict |
| 270 |
larger than the maximum size. |
| 271 |
|
| 272 |
This commit changes the code to a version that doesn't iterate over |
| 273 |
the dict, and should also be a little bit faster. |
| 274 |
|
| 275 |
- **Init-scripts**: The beat init-script now properly reports service as down |
| 276 |
when no pid file can be found. |
| 277 |
|
| 278 |
Eric Zarowny |
| 279 |
|
| 280 |
- **Beat**: Added cleaning of corrupted scheduler files for some storage |
| 281 |
backend errors (Issue #2985). |
| 282 |
|
| 283 |
Fix contributed by Aleksandr Kuznetsov. |
| 284 |
|
| 285 |
- **Beat**: Now syncs the schedule even if the schedule is empty. |
| 286 |
|
| 287 |
Fix contributed by Colin McIntosh. |
| 288 |
|
| 289 |
- **Supervisord**: Set higher process priority in the :pypi:`supervisord` |
| 290 |
example. |
| 291 |
|
| 292 |
Contributed by George Tantiras. |
| 293 |
|
| 294 |
- **Documentation**: Includes improvements by: |
| 295 |
|
| 296 |
:github_user:`Bryson` |
| 297 |
Caleb Mingle |
| 298 |
Christopher Martin |
| 299 |
Dieter Adriaenssens |
| 300 |
Jason Veatch |
| 301 |
Jeremy Cline |
| 302 |
Juan Rossi |
| 303 |
Kevin Harvey |
| 304 |
Kevin McCarthy |
| 305 |
Kirill Pavlov |
| 306 |
Marco Buttu |
| 307 |
:github_user:`Mayflower` |
| 308 |
Mher Movsisyan |
| 309 |
Michael Floering |
| 310 |
:github_user:`michael-k` |
| 311 |
Nathaniel Varona |
| 312 |
Rudy Attias |
| 313 |
Ryan Luckie |
| 314 |
Steven Parker |
| 315 |
:github_user:`squfrans` |
| 316 |
Tadej Janež |
| 317 |
TakesxiSximada |
| 318 |
Tom S |
| 319 |
|
| 320 |
.. _version-3.1.19: |
| 321 |
|
| 322 |
3.1.19 |
| 323 |
====== |
| 324 |
:release-date: 2015-10-26 01:00 p.m. UTC |
| 325 |
:release-by: Ask Solem |
| 326 |
|
| 327 |
- **Requirements** |
| 328 |
|
| 329 |
- Now depends on :ref:`Kombu 3.0.29 <kombu:version-3.0.29>`. |
| 330 |
|
| 331 |
- Now depends on :mod:`billiard` 3.3.0.21. |
| 332 |
|
| 333 |
- **Results**: Fixed MongoDB result backend URL parsing problem |
| 334 |
(Issue celery/kombu#375). |
| 335 |
|
| 336 |
- **Worker**: Task request now properly sets ``priority`` in delivery_info. |
| 337 |
|
| 338 |
Fix contributed by Gerald Manipon. |
| 339 |
|
| 340 |
- **Beat**: PyPy shelve may raise ``KeyError`` when setting keys |
| 341 |
(Issue #2862). |
| 342 |
|
| 343 |
- **Programs**: :program:`celery beat --deatched` now working on PyPy. |
| 344 |
|
| 345 |
Fix contributed by Krzysztof Bujniewicz. |
| 346 |
|
| 347 |
- **Results**: Redis result backend now ensures all pipelines are cleaned up. |
| 348 |
|
| 349 |
Contributed by Justin Patrin. |
| 350 |
|
| 351 |
- **Results**: Redis result backend now allows for timeout to be set in the |
| 352 |
query portion of the result backend URL. |
| 353 |
|
| 354 |
For example ``CELERY_RESULT_BACKEND = 'redis://?timeout=10'`` |
| 355 |
|
| 356 |
Contributed by Justin Patrin. |
| 357 |
|
| 358 |
- **Results**: ``result.get`` now properly handles failures where the |
| 359 |
exception value is set to :const:`None` (Issue #2560). |
| 360 |
|
| 361 |
- **Prefork pool**: Fixed attribute error ``proc.dead``. |
| 362 |
|
| 363 |
- **Worker**: Fixed worker hanging when gossip/heartbeat disabled |
| 364 |
(Issue #1847). |
| 365 |
|
| 366 |
Fix contributed by Aaron Webber and Bryan Helmig. |
| 367 |
|
| 368 |
- **Results**: MongoDB result backend now supports pymongo 3.x |
| 369 |
(Issue #2744). |
| 370 |
|
| 371 |
Fix contributed by Sukrit Khera. |
| 372 |
|
| 373 |
- **Results**: RPC/AMQP backends didn't deserialize exceptions properly |
| 374 |
(Issue #2691). |
| 375 |
|
| 376 |
Fix contributed by Sukrit Khera. |
| 377 |
|
| 378 |
- **Programs**: Fixed problem with :program:`celery amqp`'s |
| 379 |
``basic_publish`` (Issue #2013). |
| 380 |
|
| 381 |
- **Worker**: Embedded beat now properly sets app for thread/process |
| 382 |
(Issue #2594). |
| 383 |
|
| 384 |
- **Documentation**: Many improvements and typos fixed. |
| 385 |
|
| 386 |
Contributions by: |
| 387 |
|
| 388 |
Carlos Garcia-Dubus |
| 389 |
D. Yu |
| 390 |
:github_user:`jerry` |
| 391 |
Jocelyn Delalande |
| 392 |
Josh Kupershmidt |
| 393 |
Juan Rossi |
| 394 |
:github_user:`kanemra` |
| 395 |
Paul Pearce |
| 396 |
Pavel Savchenko |
| 397 |
Sean Wang |
| 398 |
Seungha Kim |
| 399 |
Zhaorong Ma |
| 400 |
|
| 401 |
.. _version-3.1.18: |
| 402 |
|
| 403 |
3.1.18 |
| 404 |
====== |
| 405 |
:release-date: 2015-04-22 05:30 p.m. UTC |
| 406 |
:release-by: Ask Solem |
| 407 |
|
| 408 |
- **Requirements** |
| 409 |
|
| 410 |
- Now depends on :ref:`Kombu 3.0.25 <kombu:version-3.0.25>`. |
| 411 |
|
| 412 |
- Now depends on :mod:`billiard` 3.3.0.20. |
| 413 |
|
| 414 |
- **Django**: Now supports Django 1.8 (Issue #2536). |
| 415 |
|
| 416 |
Fix contributed by Bence Tamas and Mickaël Penhard. |
| 417 |
|
| 418 |
- **Results**: MongoDB result backend now compatible with pymongo 3.0. |
| 419 |
|
| 420 |
Fix contributed by Fatih Sucu. |
| 421 |
|
| 422 |
- **Tasks**: Fixed bug only happening when a task has multiple callbacks |
| 423 |
(Issue #2515). |
| 424 |
|
| 425 |
Fix contributed by NotSqrt. |
| 426 |
|
| 427 |
- **Commands**: Preload options now support ``--arg value`` syntax. |
| 428 |
|
| 429 |
Fix contributed by John Anderson. |
| 430 |
|
| 431 |
- **Compat**: A typo caused ``celery.log.setup_logging_subsystem`` to be |
| 432 |
undefined. |
| 433 |
|
| 434 |
Fix contributed by Gunnlaugur Thor Briem. |
| 435 |
|
| 436 |
- **init-scripts**: The beat generic init-script now uses |
| 437 |
:file:`/bin/sh` instead of :command:`bash` (Issue #2496). |
| 438 |
|
| 439 |
Fix contributed by Jelle Verstraaten. |
| 440 |
|
| 441 |
- **Django**: Fixed a :exc:`TypeError` sometimes occurring in logging |
| 442 |
when validating models. |
| 443 |
|
| 444 |
Fix contributed by Alexander. |
| 445 |
|
| 446 |
- **Commands**: Worker now supports new |
| 447 |
:option:`--executable <celery worker --executable>` argument that can |
| 448 |
be used with :option:`celery worker --detach`. |
| 449 |
|
| 450 |
Contributed by Bert Vanderbauwhede. |
| 451 |
|
| 452 |
- **Canvas**: Fixed crash in chord unlock fallback task (Issue #2404). |
| 453 |
|
| 454 |
- **Worker**: Fixed rare crash occurring with |
| 455 |
:option:`--autoscale <celery worker --autoscale>` enabled (Issue #2411). |
| 456 |
|
| 457 |
- **Django**: Properly recycle worker Django database connections when the |
| 458 |
Django ``CONN_MAX_AGE`` setting is enabled (Issue #2453). |
| 459 |
|
| 460 |
Fix contributed by Luke Burden. |
| 461 |
|
| 462 |
.. _version-3.1.17: |
| 463 |
|
| 464 |
3.1.17 |
| 465 |
====== |
| 466 |
:release-date: 2014-11-19 03:30 p.m. UTC |
| 467 |
:release-by: Ask Solem |
| 468 |
|
| 469 |
.. admonition:: Don't enable the `CELERYD_FORCE_EXECV` setting! |
| 470 |
|
| 471 |
Please review your configuration and disable this option if you're using the |
| 472 |
RabbitMQ or Redis transport. |
| 473 |
|
| 474 |
Keeping this option enabled after 3.1 means the async based prefork pool will |
| 475 |
be disabled, which can easily cause instability. |
| 476 |
|
| 477 |
- **Requirements** |
| 478 |
|
| 479 |
- Now depends on :ref:`Kombu 3.0.24 <kombu:version-3.0.24>`. |
| 480 |
|
| 481 |
Includes the new Qpid transport coming in Celery 3.2, backported to |
| 482 |
support those who may still require Python 2.6 compatibility. |
| 483 |
|
| 484 |
- Now depends on :mod:`billiard` 3.3.0.19. |
| 485 |
|
| 486 |
- ``celery[librabbitmq]`` now depends on librabbitmq 1.6.1. |
| 487 |
|
| 488 |
- **Task**: The timing of ETA/countdown tasks were off after the example ``LocalTimezone`` |
| 489 |
implementation in the Python documentation no longer works in Python 3.4. |
| 490 |
(Issue #2306). |
| 491 |
|
| 492 |
- **Task**: Raising :exc:`~celery.exceptions.Ignore` no longer sends |
| 493 |
``task-failed`` event (Issue #2365). |
| 494 |
|
| 495 |
- **Redis result backend**: Fixed unbound local errors. |
| 496 |
|
| 497 |
Fix contributed by Thomas French. |
| 498 |
|
| 499 |
- **Task**: Callbacks wasn't called properly if ``link`` was a list of |
| 500 |
signatures (Issue #2350). |
| 501 |
|
| 502 |
- **Canvas**: chain and group now handles json serialized signatures |
| 503 |
(Issue #2076). |
| 504 |
|
| 505 |
- **Results**: ``.join_native()`` would accidentally treat the ``STARTED`` |
| 506 |
state as being ready (Issue #2326). |
| 507 |
|
| 508 |
This could lead to the chord callback being called with invalid arguments |
| 509 |
when using chords with the :setting:`CELERY_TRACK_STARTED` setting |
| 510 |
enabled. |
| 511 |
|
| 512 |
- **Canvas**: The ``chord_size`` attribute is now set for all canvas primitives, |
| 513 |
making sure more combinations will work with the ``new_join`` optimization |
| 514 |
for Redis (Issue #2339). |
| 515 |
|
| 516 |
- **Task**: Fixed problem with app not being properly propagated to |
| 517 |
``trace_task`` in all cases. |
| 518 |
|
| 519 |
Fix contributed by :github_user:`kristaps`. |
| 520 |
|
| 521 |
- **Worker**: Expires from task message now associated with a timezone. |
| 522 |
|
| 523 |
Fix contributed by Albert Wang. |
| 524 |
|
| 525 |
- **Cassandra result backend**: Fixed problems when using detailed mode. |
| 526 |
|
| 527 |
When using the Cassandra backend in detailed mode, a regression |
| 528 |
caused errors when attempting to retrieve results. |
| 529 |
|
| 530 |
Fix contributed by Gino Ledesma. |
| 531 |
|
| 532 |
- **Mongodb Result backend**: Pickling the backend instance will now include |
| 533 |
the original URL (Issue #2347). |
| 534 |
|
| 535 |
Fix contributed by Sukrit Khera. |
| 536 |
|
| 537 |
- **Task**: Exception info wasn't properly set for tasks raising |
| 538 |
:exc:`~celery.exceptions.Reject` (Issue #2043). |
| 539 |
|
| 540 |
- **Worker**: Duplicates are now removed when loading the set of revoked tasks |
| 541 |
from the worker state database (Issue #2336). |
| 542 |
|
| 543 |
- **celery.contrib.rdb**: Fixed problems with ``rdb.set_trace`` calling stop |
| 544 |
from the wrong frame. |
| 545 |
|
| 546 |
Fix contributed by :github_user:`llllllllll`. |
| 547 |
|
| 548 |
- **Canvas**: ``chain`` and ``chord`` can now be immutable. |
| 549 |
|
| 550 |
- **Canvas**: ``chord.apply_async`` will now keep partial args set in |
| 551 |
``self.args`` (Issue #2299). |
| 552 |
|
| 553 |
- **Results**: Small refactoring so that results are decoded the same way in |
| 554 |
all result backends. |
| 555 |
|
| 556 |
- **Logging**: The ``processName`` format was introduced in Python 2.6.2 so for |
| 557 |
compatibility this format is now excluded when using earlier versions |
| 558 |
(Issue #1644). |
| 559 |
|
| 560 |
.. _version-3.1.16: |
| 561 |
|
| 562 |
3.1.16 |
| 563 |
====== |
| 564 |
:release-date: 2014-10-03 06:00 p.m. UTC |
| 565 |
:release-by: Ask Solem |
| 566 |
|
| 567 |
- **Worker**: 3.1.15 broke :option:`-Ofair <celery worker -O>` |
| 568 |
behavior (Issue #2286). |
| 569 |
|
| 570 |
This regression could result in all tasks executing |
| 571 |
in a single child process if ``-Ofair`` was enabled. |
| 572 |
|
| 573 |
- **Canvas**: ``celery.signature`` now properly forwards app argument |
| 574 |
in all cases. |
| 575 |
|
| 576 |
- **Task**: ``.retry()`` didn't raise the exception correctly |
| 577 |
when called without a current exception. |
| 578 |
|
| 579 |
Fix contributed by Andrea Rabbaglietti. |
| 580 |
|
| 581 |
- **Worker**: The ``enable_events`` remote control command |
| 582 |
disabled worker-related events by mistake (Issue #2272). |
| 583 |
|
| 584 |
Fix contributed by Konstantinos Koukopoulos. |
| 585 |
|
| 586 |
- **Django**: Adds support for Django 1.7 class names in INSTALLED_APPS |
| 587 |
when using ``app.autodiscover_tasks()`` (Issue #2248). |
| 588 |
|
| 589 |
- **Sphinx**: ``celery.contrib.sphinx`` now uses ``getfullargspec`` |
| 590 |
on Python 3 (Issue #2302). |
| 591 |
|
| 592 |
- **Redis/Cache Backends**: Chords will now run at most once if one or more tasks |
| 593 |
in the chord are executed multiple times for some reason. |
| 594 |
|
| 595 |
.. _version-3.1.15: |
| 596 |
|
| 597 |
3.1.15 |
| 598 |
====== |
| 599 |
:release-date: 2014-09-14 11:00 p.m. UTC |
| 600 |
:release-by: Ask Solem |
| 601 |
|
| 602 |
- **Django**: Now makes sure ``django.setup()`` is called |
| 603 |
before importing any task modules (Django 1.7 compatibility, Issue #2227) |
| 604 |
|
| 605 |
- **Results**: ``result.get()`` was misbehaving by calling |
| 606 |
``backend.get_task_meta`` in a :keyword:`finally` call leading to |
| 607 |
AMQP result backend queues not being properly cleaned up (Issue #2245). |
| 608 |
|
| 609 |
.. _version-3.1.14: |
| 610 |
|
| 611 |
3.1.14 |
| 612 |
====== |
| 613 |
:release-date: 2014-09-08 03:00 p.m. UTC |
| 614 |
:release-by: Ask Solem |
| 615 |
|
| 616 |
- **Requirements** |
| 617 |
|
| 618 |
- Now depends on :ref:`Kombu 3.0.22 <kombu:version-3.0.22>`. |
| 619 |
|
| 620 |
- **Init-scripts**: The generic worker init-scripts ``status`` command |
| 621 |
now gets an accurate pidfile list (Issue #1942). |
| 622 |
|
| 623 |
- **Init-scripts**: The generic beat script now implements the ``status`` |
| 624 |
command. |
| 625 |
|
| 626 |
Contributed by John Whitlock. |
| 627 |
|
| 628 |
- **Commands**: Multi now writes informational output to stdout instead of stderr. |
| 629 |
|
| 630 |
- **Worker**: Now ignores not implemented error for ``pool.restart`` |
| 631 |
(Issue #2153). |
| 632 |
|
| 633 |
- **Task**: Retry no longer raises retry exception when executed in eager |
| 634 |
mode (Issue #2164). |
| 635 |
|
| 636 |
- **AMQP Result backend**: Now ensured ``on_interval`` is called at least |
| 637 |
every second for blocking calls to properly propagate parent errors. |
| 638 |
|
| 639 |
- **Django**: Compatibility with Django 1.7 on Windows (Issue #2126). |
| 640 |
|
| 641 |
- **Programs**: :option:`!--umask` argument can now be |
| 642 |
specified in both octal (if starting with 0) or decimal. |
| 643 |
|
| 644 |
|
| 645 |
.. _version-3.1.13: |
| 646 |
|
| 647 |
3.1.13 |
| 648 |
====== |
| 649 |
|
| 650 |
Security Fixes |
| 651 |
-------------- |
| 652 |
|
| 653 |
* [Security: `CELERYSA-0002`_] Insecure default umask. |
| 654 |
|
| 655 |
The built-in utility used to daemonize the Celery worker service sets |
| 656 |
an insecure umask by default (umask 0). |
| 657 |
|
| 658 |
This means that any files or directories created by the worker will |
| 659 |
end up having world-writable permissions. |
| 660 |
|
| 661 |
Special thanks to Red Hat for originally discovering and reporting the |
| 662 |
issue! |
| 663 |
|
| 664 |
This version will no longer set a default umask by default, so if unset |
| 665 |
the umask of the parent process will be used. |
| 666 |
|
| 667 |
.. _`CELERYSA-0002`: |
| 668 |
https://github.com/celery/celery/tree/master/docs/sec/CELERYSA-0002.txt |
| 669 |
|
| 670 |
News |
| 671 |
---- |
| 672 |
|
| 673 |
- **Requirements** |
| 674 |
|
| 675 |
- Now depends on :ref:`Kombu 3.0.21 <kombu:version-3.0.21>`. |
| 676 |
|
| 677 |
- Now depends on :mod:`billiard` 3.3.0.18. |
| 678 |
|
| 679 |
|
| 680 |
- **App**: ``backend`` argument now also sets the :setting:`CELERY_RESULT_BACKEND` |
| 681 |
setting. |
| 682 |
|
| 683 |
- **Task**: ``signature_from_request`` now propagates ``reply_to`` so that |
| 684 |
the RPC backend works with retried tasks (Issue #2113). |
| 685 |
|
| 686 |
- **Task**: ``retry`` will no longer attempt to re-queue the task if sending |
| 687 |
the retry message fails. |
| 688 |
|
| 689 |
Unrelated exceptions being raised could cause a message loop, so it was |
| 690 |
better to remove this behavior. |
| 691 |
|
| 692 |
- **Beat**: Accounts for standard 1ms drift by always waking up 0.010s |
| 693 |
earlier. |
| 694 |
|
| 695 |
This will adjust the latency so that the periodic tasks won't move |
| 696 |
1ms after every invocation. |
| 697 |
|
| 698 |
- Documentation fixes |
| 699 |
|
| 700 |
Contributed by Yuval Greenfield, Lucas Wiman, :github_user:`nicholsonjf`. |
| 701 |
|
| 702 |
- **Worker**: Removed an outdated assert statement that could lead to errors |
| 703 |
being masked (Issue #2086). |
| 704 |
|
| 705 |
|
| 706 |
|
| 707 |
.. _version-3.1.12: |
| 708 |
|
| 709 |
3.1.12 |
| 710 |
====== |
| 711 |
:release-date: 2014-06-09 10:12 p.m. UTC |
| 712 |
:release-by: Ask Solem |
| 713 |
|
| 714 |
- **Requirements** |
| 715 |
|
| 716 |
Now depends on :ref:`Kombu 3.0.19 <kombu:version-3.0.19>`. |
| 717 |
|
| 718 |
- **App**: Connections weren't being closed after fork due to an error in the |
| 719 |
after fork handler (Issue #2055). |
| 720 |
|
| 721 |
This could manifest itself by causing framing errors when using RabbitMQ. |
| 722 |
(``Unexpected frame``). |
| 723 |
|
| 724 |
- **Django**: ``django.setup()`` was being called too late when |
| 725 |
using Django 1.7 (Issue #1802). |
| 726 |
|
| 727 |
- **Django**: Fixed problems with event timezones when using Django |
| 728 |
(``Substantial drift``). |
| 729 |
|
| 730 |
Celery didn't take into account that Django modifies the |
| 731 |
``time.timeone`` attributes and friends. |
| 732 |
|
| 733 |
- **Canvas**: ``Signature.link`` now works when the link option is a scalar |
| 734 |
value (Issue #2019). |
| 735 |
|
| 736 |
- **Prefork pool**: Fixed race conditions for when file descriptors are |
| 737 |
removed from the event loop. |
| 738 |
|
| 739 |
Fix contributed by Roger Hu. |
| 740 |
|
| 741 |
- **Prefork pool**: Improved solution for dividing tasks between child |
| 742 |
processes. |
| 743 |
|
| 744 |
This change should improve performance when there are many child |
| 745 |
processes, and also decrease the chance that two subsequent tasks are |
| 746 |
written to the same child process. |
| 747 |
|
| 748 |
- **Worker**: Now ignores unknown event types, instead of crashing. |
| 749 |
|
| 750 |
Fix contributed by Illes Solt. |
| 751 |
|
| 752 |
- **Programs**: :program:`celery worker --detach` no longer closes open file |
| 753 |
descriptors when :envvar:`C_FAKEFORK` is used so that the workers output |
| 754 |
can be seen. |
| 755 |
|
| 756 |
- **Programs**: The default working directory for :program:`celery worker |
| 757 |
--detach` is now the current working directory, not ``/``. |
| 758 |
|
| 759 |
- **Canvas**: ``signature(s, app=app)`` didn't upgrade serialized signatures |
| 760 |
to their original class (``subtask_type``) when the ``app`` keyword argument |
| 761 |
was used. |
| 762 |
|
| 763 |
- **Control**: The ``duplicate nodename`` warning emitted by control commands |
| 764 |
now shows the duplicate node name. |
| 765 |
|
| 766 |
- **Tasks**: Can now call ``ResultSet.get()`` on a result set without members. |
| 767 |
|
| 768 |
Fix contributed by Alexey Kotlyarov. |
| 769 |
|
| 770 |
- **App**: Fixed strange traceback mangling issue for |
| 771 |
``app.connection_or_acquire``. |
| 772 |
|
| 773 |
- **Programs**: The :program:`celery multi stopwait` command is now documented |
| 774 |
in usage. |
| 775 |
|
| 776 |
- **Other**: Fixed cleanup problem with ``PromiseProxy`` when an error is |
| 777 |
raised while trying to evaluate the promise. |
| 778 |
|
| 779 |
- **Other**: The utility used to censor configuration values now handles |
| 780 |
non-string keys. |
| 781 |
|
| 782 |
Fix contributed by Luke Pomfrey. |
| 783 |
|
| 784 |
- **Other**: The ``inspect conf`` command didn't handle non-string keys well. |
| 785 |
|
| 786 |
Fix contributed by Jay Farrimond. |
| 787 |
|
| 788 |
- **Programs**: Fixed argument handling problem in |
| 789 |
:program:`celery worker --detach`. |
| 790 |
|
| 791 |
Fix contributed by Dmitry Malinovsky. |
| 792 |
|
| 793 |
- **Programs**: :program:`celery worker --detach` didn't forward working |
| 794 |
directory option (Issue #2003). |
| 795 |
|
| 796 |
- **Programs**: :program:`celery inspect registered` no longer includes |
| 797 |
the list of built-in tasks. |
| 798 |
|
| 799 |
- **Worker**: The ``requires`` attribute for boot steps weren't being handled |
| 800 |
correctly (Issue #2002). |
| 801 |
|
| 802 |
- **Eventlet**: The eventlet pool now supports the ``pool_grow`` and |
| 803 |
``pool_shrink`` remote control commands. |
| 804 |
|
| 805 |
Contributed by Mher Movsisyan. |
| 806 |
|
| 807 |
- **Eventlet**: The eventlet pool now implements statistics for |
| 808 |
:program:``celery inspect stats``. |
| 809 |
|
| 810 |
Contributed by Mher Movsisyan. |
| 811 |
|
| 812 |
- **Documentation**: Clarified ``Task.rate_limit`` behavior. |
| 813 |
|
| 814 |
Contributed by Jonas Haag. |
| 815 |
|
| 816 |
- **Documentation**: ``AbortableTask`` examples now updated to use the new |
| 817 |
API (Issue #1993). |
| 818 |
|
| 819 |
- **Documentation**: The security documentation examples used an out of date |
| 820 |
import. |
| 821 |
|
| 822 |
Fix contributed by Ian Dees. |
| 823 |
|
| 824 |
- **Init-scripts**: The CentOS init-scripts didn't quote |
| 825 |
:envvar:`CELERY_CHDIR`. |
| 826 |
|
| 827 |
Fix contributed by :github_user:`ffeast`. |
| 828 |
|
| 829 |
.. _version-3.1.11: |
| 830 |
|
| 831 |
3.1.11 |
| 832 |
====== |
| 833 |
:release-date: 2014-04-16 11:00 p.m. UTC |
| 834 |
:release-by: Ask Solem |
| 835 |
|
| 836 |
- **Now compatible with RabbitMQ 3.3.0** |
| 837 |
|
| 838 |
You need to run Celery 3.1.11 or later when using RabbitMQ 3.3, |
| 839 |
and if you use the ``librabbitmq`` module you also have to upgrade |
| 840 |
to librabbitmq 1.5.0: |
| 841 |
|
| 842 |
.. code-block:: bash |
| 843 |
|
| 844 |
$ pip install -U librabbitmq |
| 845 |
|
| 846 |
- **Requirements**: |
| 847 |
|
| 848 |
- Now depends on :ref:`Kombu 3.0.15 <kombu:version-3.0.15>`. |
| 849 |
|
| 850 |
- Now depends on `billiard 3.3.0.17`_. |
| 851 |
|
| 852 |
- Bundle ``celery[librabbitmq]`` now depends on :mod:`librabbitmq` 1.5.0. |
| 853 |
|
| 854 |
.. _`billiard 3.3.0.17`: |
| 855 |
https://github.com/celery/billiard/blob/master/CHANGES.txt |
| 856 |
|
| 857 |
- **Tasks**: The :setting:`CELERY_DEFAULT_DELIVERY_MODE` setting was being |
| 858 |
ignored (Issue #1953). |
| 859 |
|
| 860 |
- **Worker**: New :option:`celery worker --heartbeat-interval` can be used |
| 861 |
to change the time (in seconds) between sending event heartbeats. |
| 862 |
|
| 863 |
Contributed by Matthew Duggan and Craig Northway. |
| 864 |
|
| 865 |
- **App**: Fixed memory leaks occurring when creating lots of temporary |
| 866 |
app instances (Issue #1949). |
| 867 |
|
| 868 |
- **MongoDB**: SSL configuration with non-MongoDB transport breaks MongoDB |
| 869 |
results backend (Issue #1973). |
| 870 |
|
| 871 |
Fix contributed by Brian Bouterse. |
| 872 |
|
| 873 |
- **Logging**: The color formatter accidentally modified ``record.msg`` |
| 874 |
(Issue #1939). |
| 875 |
|
| 876 |
- **Results**: Fixed problem with task trails being stored multiple times, |
| 877 |
causing ``result.collect()`` to hang (Issue #1936, Issue #1943). |
| 878 |
|
| 879 |
- **Results**: ``ResultSet`` now implements a ``.backend`` attribute for |
| 880 |
compatibility with ``AsyncResult``. |
| 881 |
|
| 882 |
- **Results**: ``.forget()`` now also clears the local cache. |
| 883 |
|
| 884 |
- **Results**: Fixed problem with multiple calls to ``result._set_cache`` |
| 885 |
(Issue #1940). |
| 886 |
|
| 887 |
- **Results**: ``join_native`` populated result cache even if disabled. |
| 888 |
|
| 889 |
- **Results**: The YAML result serializer should now be able to handle storing |
| 890 |
exceptions. |
| 891 |
|
| 892 |
- **Worker**: No longer sends task error emails for expected errors (in |
| 893 |
``@task(throws=(..., )))``. |
| 894 |
|
| 895 |
- **Canvas**: Fixed problem with exception deserialization when using |
| 896 |
the JSON serializer (Issue #1987). |
| 897 |
|
| 898 |
- **Eventlet**: Fixes crash when ``celery.contrib.batches`` attempted to |
| 899 |
cancel a non-existing timer (Issue #1984). |
| 900 |
|
| 901 |
- Can now import ``celery.version_info_t``, and ``celery.five`` (Issue #1968). |
| 902 |
|
| 903 |
|
| 904 |
.. _version-3.1.10: |
| 905 |
|
| 906 |
3.1.10 |
| 907 |
====== |
| 908 |
:release-date: 2014-03-22 09:40 p.m. UTC |
| 909 |
:release-by: Ask Solem |
| 910 |
|
| 911 |
- **Requirements**: |
| 912 |
|
| 913 |
- Now depends on :ref:`Kombu 3.0.14 <kombu:version-3.0.14>`. |
| 914 |
|
| 915 |
- **Results**: |
| 916 |
|
| 917 |
Reliability improvements to the SQLAlchemy database backend. Previously the |
| 918 |
connection from the MainProcess was improperly shared with the workers. |
| 919 |
(Issue #1786) |
| 920 |
|
| 921 |
- **Redis:** Important note about events (Issue #1882). |
| 922 |
|
| 923 |
There's a new transport option for Redis that enables monitors |
| 924 |
to filter out unwanted events. Enabling this option in the workers |
| 925 |
will increase performance considerably: |
| 926 |
|
| 927 |
.. code-block:: python |
| 928 |
|
| 929 |
BROKER_TRANSPORT_OPTIONS = {'fanout_patterns': True} |
| 930 |
|
| 931 |
Enabling this option means that your workers won't be able to see |
| 932 |
workers with the option disabled (or is running an older version of |
| 933 |
Celery), so if you do enable it then make sure you do so on all |
| 934 |
nodes. |
| 935 |
|
| 936 |
See :ref:`redis-caveats`. |
| 937 |
|
| 938 |
This will be the default in Celery 3.2. |
| 939 |
|
| 940 |
- **Results**: The :class:`@AsyncResult` object now keeps a local cache |
| 941 |
of the final state of the task. |
| 942 |
|
| 943 |
This means that the global result cache can finally be disabled, |
| 944 |
and you can do so by setting :setting:`CELERY_MAX_CACHED_RESULTS` to |
| 945 |
:const:`-1`. The lifetime of the cache will then be bound to the |
| 946 |
lifetime of the result object, which will be the default behavior |
| 947 |
in Celery 3.2. |
| 948 |
|
| 949 |
- **Events**: The "Substantial drift" warning message is now logged once |
| 950 |
per node name only (Issue #1802). |
| 951 |
|
| 952 |
- **Worker**: Ability to use one log file per child process when using the |
| 953 |
prefork pool. |
| 954 |
|
| 955 |
This can be enabled by using the new ``%i`` and ``%I`` format specifiers |
| 956 |
for the log file name. See :ref:`worker-files-process-index`. |
| 957 |
|
| 958 |
- **Redis**: New experimental chord join implementation. |
| 959 |
|
| 960 |
This is an optimization for chords when using the Redis result backend, |
| 961 |
where the join operation is now considerably faster and using less |
| 962 |
resources than the previous strategy. |
| 963 |
|
| 964 |
The new option can be set in the result backend URL: |
| 965 |
|
| 966 |
.. code-block:: python |
| 967 |
|
| 968 |
CELERY_RESULT_BACKEND = 'redis://localhost?new_join=1' |
| 969 |
|
| 970 |
This must be enabled manually as it's incompatible |
| 971 |
with workers and clients not using it, so be sure to enable |
| 972 |
the option in all clients and workers if you decide to use it. |
| 973 |
|
| 974 |
- **Multi**: With ``-opt:index`` (e.g., ``-c:1``) the index now always refers |
| 975 |
to the position of a node in the argument list. |
| 976 |
|
| 977 |
This means that referring to a number will work when specifying a list |
| 978 |
of node names and not just for a number range: |
| 979 |
|
| 980 |
.. code-block:: bash |
| 981 |
|
| 982 |
celery multi start A B C D -c:1 4 -c:2-4 8 |
| 983 |
|
| 984 |
In this example ``1`` refers to node A (as it's the first node in the |
| 985 |
list). |
| 986 |
|
| 987 |
- **Signals**: The sender argument to ``Signal.connect`` can now be a proxy |
| 988 |
object, which means that it can be used with the task decorator |
| 989 |
(Issue #1873). |
| 990 |
|
| 991 |
- **Task**: A regression caused the ``queue`` argument to ``Task.retry`` to be |
| 992 |
ignored (Issue #1892). |
| 993 |
|
| 994 |
- **App**: Fixed error message for :meth:`[email protected]_from_envvar`. |
| 995 |
|
| 996 |
Fix contributed by Dmitry Malinovsky. |
| 997 |
|
| 998 |
- **Canvas**: Chords can now contain a group of other chords (Issue #1921). |
| 999 |
|
| 1000 |
- **Canvas**: Chords can now be combined when using the amqp result backend |
| 1001 |
(a chord where the callback is also a chord). |
| 1002 |
|
| 1003 |
- **Canvas**: Calling ``result.get()`` for a chain task will now complete |
| 1004 |
even if one of the tasks in the chain is ``ignore_result=True`` |
| 1005 |
(Issue #1905). |
| 1006 |
|
| 1007 |
- **Canvas**: Worker now also logs chord errors. |
| 1008 |
|
| 1009 |
- **Canvas**: A chord task raising an exception will now result in |
| 1010 |
any errbacks (``link_error``) to the chord callback to also be called. |
| 1011 |
|
| 1012 |
- **Results**: Reliability improvements to the SQLAlchemy database backend |
| 1013 |
(Issue #1786). |
| 1014 |
|
| 1015 |
Previously the connection from the ``MainProcess`` was improperly |
| 1016 |
inherited by child processes. |
| 1017 |
|
| 1018 |
Fix contributed by Ionel Cristian Mărieș. |
| 1019 |
|
| 1020 |
- **Task**: Task callbacks and errbacks are now called using the group |
| 1021 |
primitive. |
| 1022 |
|
| 1023 |
- **Task**: ``Task.apply`` now properly sets ``request.headers`` |
| 1024 |
(Issue #1874). |
| 1025 |
|
| 1026 |
- **Worker**: Fixed :exc:`UnicodeEncodeError` occurring when worker is started |
| 1027 |
by :pypi:`supervisor`. |
| 1028 |
|
| 1029 |
Fix contributed by Codeb Fan. |
| 1030 |
|
| 1031 |
- **Beat**: No longer attempts to upgrade a newly created database file |
| 1032 |
(Issue #1923). |
| 1033 |
|
| 1034 |
- **Beat**: New setting :setting:``CELERYBEAT_SYNC_EVERY`` can be used |
| 1035 |
to control file sync by specifying the number of tasks to send between |
| 1036 |
each sync. |
| 1037 |
|
| 1038 |
Contributed by Chris Clark. |
| 1039 |
|
| 1040 |
- **Commands**: :program:`celery inspect memdump` no longer crashes |
| 1041 |
if the :mod:`psutil` module isn't installed (Issue #1914). |
| 1042 |
|
| 1043 |
- **Worker**: Remote control commands now always accepts json serialized |
| 1044 |
messages (Issue #1870). |
| 1045 |
|
| 1046 |
- **Worker**: Gossip will now drop any task related events it receives |
| 1047 |
by mistake (Issue #1882). |
| 1048 |
|
| 1049 |
|
| 1050 |
.. _version-3.1.9: |
| 1051 |
|
| 1052 |
3.1.9 |
| 1053 |
===== |
| 1054 |
:release-date: 2014-02-10 06:43 p.m. UTC |
| 1055 |
:release-by: Ask Solem |
| 1056 |
|
| 1057 |
- **Requirements**: |
| 1058 |
|
| 1059 |
- Now depends on :ref:`Kombu 3.0.12 <kombu:version-3.0.12>`. |
| 1060 |
|
| 1061 |
- **Prefork pool**: Better handling of exiting child processes. |
| 1062 |
|
| 1063 |
Fix contributed by Ionel Cristian Mărieș. |
| 1064 |
|
| 1065 |
- **Prefork pool**: Now makes sure all file descriptors are removed |
| 1066 |
from the hub when a process is cleaned up. |
| 1067 |
|
| 1068 |
Fix contributed by Ionel Cristian Mărieș. |
| 1069 |
|
| 1070 |
- **New Sphinx extension**: for autodoc documentation of tasks: |
| 1071 |
:mod:`celery.contrib.spinx` (Issue #1833). |
| 1072 |
|
| 1073 |
- **Django**: Now works with Django 1.7a1. |
| 1074 |
|
| 1075 |
- **Task**: Task.backend is now a property that forwards to ``app.backend`` |
| 1076 |
if no custom backend has been specified for the task (Issue #1821). |
| 1077 |
|
| 1078 |
- **Generic init-scripts**: Fixed bug in stop command. |
| 1079 |
|
| 1080 |
Fix contributed by Rinat Shigapov. |
| 1081 |
|
| 1082 |
- **Generic init-scripts**: Fixed compatibility with GNU :manpage:`stat`. |
| 1083 |
|
| 1084 |
Fix contributed by Paul Kilgo. |
| 1085 |
|
| 1086 |
- **Generic init-scripts**: Fixed compatibility with the minimal |
| 1087 |
:program:`dash` shell (Issue #1815). |
| 1088 |
|
| 1089 |
- **Commands**: The :program:`celery amqp basic.publish` command wasn't |
| 1090 |
working properly. |
| 1091 |
|
| 1092 |
Fix contributed by Andrey Voronov. |
| 1093 |
|
| 1094 |
- **Commands**: Did no longer emit an error message if the pidfile exists |
| 1095 |
and the process is still alive (Issue #1855). |
| 1096 |
|
| 1097 |
- **Commands**: Better error message for missing arguments to preload |
| 1098 |
options (Issue #1860). |
| 1099 |
|
| 1100 |
- **Commands**: :program:`celery -h` didn't work because of a bug in the |
| 1101 |
argument parser (Issue #1849). |
| 1102 |
|
| 1103 |
- **Worker**: Improved error message for message decoding errors. |
| 1104 |
|
| 1105 |
- **Time**: Now properly parses the `Z` timezone specifier in ISO 8601 date |
| 1106 |
strings. |
| 1107 |
|
| 1108 |
Fix contributed by Martin Davidsson. |
| 1109 |
|
| 1110 |
- **Worker**: Now uses the *negotiated* heartbeat value to calculate |
| 1111 |
how often to run the heartbeat checks. |
| 1112 |
|
| 1113 |
- **Beat**: Fixed problem with beat hanging after the first schedule |
| 1114 |
iteration (Issue #1822). |
| 1115 |
|
| 1116 |
Fix contributed by Roger Hu. |
| 1117 |
|
| 1118 |
- **Signals**: The header argument to :signal:`before_task_publish` is now |
| 1119 |
always a dictionary instance so that signal handlers can add headers. |
| 1120 |
|
| 1121 |
- **Worker**: A list of message headers is now included in message related |
| 1122 |
errors. |
| 1123 |
|
| 1124 |
.. _version-3.1.8: |
| 1125 |
|
| 1126 |
3.1.8 |
| 1127 |
===== |
| 1128 |
:release-date: 2014-01-17 10:45 p.m. UTC |
| 1129 |
:release-by: Ask Solem |
| 1130 |
|
| 1131 |
- **Requirements**: |
| 1132 |
|
| 1133 |
- Now depends on :ref:`Kombu 3.0.10 <kombu:version-3.0.10>`. |
| 1134 |
|
| 1135 |
- Now depends on `billiard 3.3.0.14`_. |
| 1136 |
|
| 1137 |
.. _`billiard 3.3.0.14`: |
| 1138 |
https://github.com/celery/billiard/blob/master/CHANGES.txt |
| 1139 |
|
| 1140 |
- **Worker**: The event loop wasn't properly reinitialized at consumer restart |
| 1141 |
which would force the worker to continue with a closed ``epoll`` instance on |
| 1142 |
Linux, resulting in a crash. |
| 1143 |
|
| 1144 |
- **Events:** Fixed issue with both heartbeats and task events that could |
| 1145 |
result in the data not being kept in sorted order. |
| 1146 |
|
| 1147 |
As a result this would force the worker to log "heartbeat missed" |
| 1148 |
events even though the remote node was sending heartbeats in a timely manner. |
| 1149 |
|
| 1150 |
- **Results:** The pickle serializer no longer converts group results to tuples, |
| 1151 |
and will keep the original type (*Issue #1750*). |
| 1152 |
|
| 1153 |
- **Results:** ``ResultSet.iterate`` is now pending deprecation. |
| 1154 |
|
| 1155 |
The method will be deprecated in version 3.2 and removed in version 3.3. |
| 1156 |
|
| 1157 |
Use ``result.get(callback=)`` (or ``result.iter_native()`` where available) |
| 1158 |
instead. |
| 1159 |
|
| 1160 |
- **Worker**\|eventlet/gevent: A regression caused :kbd:`Control-c` to be |
| 1161 |
ineffective for shutdown. |
| 1162 |
|
| 1163 |
- **Redis result backend:** Now using a pipeline to store state changes |
| 1164 |
for improved performance. |
| 1165 |
|
| 1166 |
Contributed by Pepijn de Vos. |
| 1167 |
|
| 1168 |
- **Redis result backend:** Will now retry storing the result if disconnected. |
| 1169 |
|
| 1170 |
- **Worker**\|gossip: Fixed attribute error occurring when another node leaves. |
| 1171 |
|
| 1172 |
Fix contributed by Brodie Rao. |
| 1173 |
|
| 1174 |
- **Generic init-scripts:** Now runs a check at start-up to verify |
| 1175 |
that any configuration scripts are owned by root and that they |
| 1176 |
aren't world/group writable. |
| 1177 |
|
| 1178 |
The init-script configuration is a shell script executed by root, |
| 1179 |
so this is a preventive measure to ensure that users don't |
| 1180 |
leave this file vulnerable to changes by unprivileged users. |
| 1181 |
|
| 1182 |
.. note:: |
| 1183 |
|
| 1184 |
Note that upgrading Celery won't update the init-scripts, |
| 1185 |
instead you need to manually copy the improved versions from the |
| 1186 |
source distribution: |
| 1187 |
https://github.com/celery/celery/tree/3.1/extra/generic-init.d |
| 1188 |
|
| 1189 |
- **Commands**: The :program:`celery purge` command now warns that the operation |
| 1190 |
will delete all tasks and prompts the user for confirmation. |
| 1191 |
|
| 1192 |
A new :option:`-f <celery purge -f>` was added that can be used to disable |
| 1193 |
interactive mode. |
| 1194 |
|
| 1195 |
- **Task**: ``.retry()`` didn't raise the value provided in the ``exc`` argument |
| 1196 |
when called outside of an error context (*Issue #1755*). |
| 1197 |
|
| 1198 |
- **Commands:** The :program:`celery multi` command didn't forward command |
| 1199 |
line configuration to the target workers. |
| 1200 |
|
| 1201 |
The change means that multi will forward the special ``--`` argument and |
| 1202 |
configuration content at the end of the arguments line to the specified |
| 1203 |
workers. |
| 1204 |
|
| 1205 |
Example using command-line configuration to set a broker heartbeat |
| 1206 |
from :program:`celery multi`: |
| 1207 |
|
| 1208 |
.. code-block:: bash |
| 1209 |
|
| 1210 |
$ celery multi start 1 -c3 -- broker.heartbeat=30 |
| 1211 |
|
| 1212 |
Fix contributed by Antoine Legrand. |
| 1213 |
|
| 1214 |
- **Canvas:** ``chain.apply_async()`` now properly forwards execution options. |
| 1215 |
|
| 1216 |
Fix contributed by Konstantin Podshumok. |
| 1217 |
|
| 1218 |
- **Redis result backend:** Now takes ``connection_pool`` argument that can be |
| 1219 |
used to change the connection pool class/constructor. |
| 1220 |
|
| 1221 |
- **Worker:** Now truncates very long arguments and keyword arguments logged by |
| 1222 |
the pool at debug severity. |
| 1223 |
|
| 1224 |
- **Worker:** The worker now closes all open files on :sig:`SIGHUP` (regression) |
| 1225 |
(*Issue #1768*). |
| 1226 |
|
| 1227 |
Fix contributed by Brodie Rao |
| 1228 |
|
| 1229 |
- **Worker:** Will no longer accept remote control commands while the |
| 1230 |
worker start-up phase is incomplete (*Issue #1741*). |
| 1231 |
|
| 1232 |
- **Commands:** The output of the event dump utility |
| 1233 |
(:program:`celery events -d`) can now be piped into other commands. |
| 1234 |
|
| 1235 |
- **Documentation:** The RabbitMQ installation instructions for macOS was |
| 1236 |
updated to use modern Homebrew practices. |
| 1237 |
|
| 1238 |
Contributed by Jon Chen. |
| 1239 |
|
| 1240 |
- **Commands:** The :program:`celery inspect conf` utility now works. |
| 1241 |
|
| 1242 |
- **Commands:** The :option:`--no-color <celery --no-color>` argument was |
| 1243 |
not respected by all commands (*Issue #1799*). |
| 1244 |
|
| 1245 |
- **App:** Fixed rare bug with ``autodiscover_tasks()`` (*Issue #1797*). |
| 1246 |
|
| 1247 |
- **Distribution:** The sphinx docs will now always add the parent directory |
| 1248 |
to path so that the current Celery source code is used as a basis for |
| 1249 |
API documentation (*Issue #1782*). |
| 1250 |
|
| 1251 |
- **Documentation:** :pypi:`supervisor` examples contained an |
| 1252 |
extraneous '-' in a :option:`--logfile <celery worker --logfile>` argument |
| 1253 |
example. |
| 1254 |
|
| 1255 |
Fix contributed by Mohammad Almeer. |
| 1256 |
|
| 1257 |
.. _version-3.1.7: |
| 1258 |
|
| 1259 |
3.1.7 |
| 1260 |
===== |
| 1261 |
:release-date: 2013-12-17 06:00 p.m. UTC |
| 1262 |
:release-by: Ask Solem |
| 1263 |
|
| 1264 |
.. _v317-important: |
| 1265 |
|
| 1266 |
Important Notes |
| 1267 |
--------------- |
| 1268 |
|
| 1269 |
Init-script security improvements |
| 1270 |
--------------------------------- |
| 1271 |
|
| 1272 |
Where the generic init-scripts (for ``celeryd``, and ``celerybeat``) before |
| 1273 |
delegated the responsibility of dropping privileges to the target application, |
| 1274 |
it will now use ``su`` instead, so that the Python program isn't trusted |
| 1275 |
with superuser privileges. |
| 1276 |
|
| 1277 |
This isn't in reaction to any known exploit, but it will |
| 1278 |
limit the possibility of a privilege escalation bug being abused in the |
| 1279 |
future. |
| 1280 |
|
| 1281 |
You have to upgrade the init-scripts manually from this directory: |
| 1282 |
https://github.com/celery/celery/tree/3.1/extra/generic-init.d |
| 1283 |
|
| 1284 |
AMQP result backend |
| 1285 |
~~~~~~~~~~~~~~~~~~~ |
| 1286 |
|
| 1287 |
The 3.1 release accidentally left the amqp backend configured to be |
| 1288 |
non-persistent by default. |
| 1289 |
|
| 1290 |
Upgrading from 3.0 would give a "not equivalent" error when attempting to |
| 1291 |
set or retrieve results for a task. That's unless you manually set the |
| 1292 |
persistence setting:: |
| 1293 |
|
| 1294 |
CELERY_RESULT_PERSISTENT = True |
| 1295 |
|
| 1296 |
This version restores the previous value so if you already forced |
| 1297 |
the upgrade by removing the existing exchange you must either |
| 1298 |
keep the configuration by setting ``CELERY_RESULT_PERSISTENT = False`` |
| 1299 |
or delete the ``celeryresults`` exchange again. |
| 1300 |
|
| 1301 |
Synchronous subtasks |
| 1302 |
~~~~~~~~~~~~~~~~~~~~ |
| 1303 |
|
| 1304 |
Tasks waiting for the result of a subtask will now emit |
| 1305 |
a :exc:`RuntimeWarning` warning when using the prefork pool, |
| 1306 |
and in 3.2 this will result in an exception being raised. |
| 1307 |
|
| 1308 |
It's not legal for tasks to block by waiting for subtasks |
| 1309 |
as this is likely to lead to resource starvation and eventually |
| 1310 |
deadlock when using the prefork pool (see also :ref:`task-synchronous-subtasks`). |
| 1311 |
|
| 1312 |
If you really know what you're doing you can avoid the warning (and |
| 1313 |
the future exception being raised) by moving the operation in a |
| 1314 |
white-list block: |
| 1315 |
|
| 1316 |
.. code-block:: python |
| 1317 |
|
| 1318 |
from celery.result import allow_join_result |
| 1319 |
|
| 1320 |
@app.task |
| 1321 |
def misbehaving(): |
| 1322 |
result = other_task.delay() |
| 1323 |
with allow_join_result(): |
| 1324 |
result.get() |
| 1325 |
|
| 1326 |
Note also that if you wait for the result of a subtask in any form |
| 1327 |
when using the prefork pool you must also disable the pool prefetching |
| 1328 |
behavior with the worker :ref:`-Ofair option <optimizing-prefetch-limit>`. |
| 1329 |
|
| 1330 |
.. _v317-fixes: |
| 1331 |
|
| 1332 |
Fixes |
| 1333 |
----- |
| 1334 |
|
| 1335 |
- Now depends on :ref:`Kombu 3.0.8 <kombu:version-3.0.8>`. |
| 1336 |
|
| 1337 |
- Now depends on :mod:`billiard` 3.3.0.13 |
| 1338 |
|
| 1339 |
- Events: Fixed compatibility with non-standard json libraries |
| 1340 |
that sends float as :class:`decimal.Decimal` (Issue #1731) |
| 1341 |
|
| 1342 |
- Events: State worker objects now always defines attributes: |
| 1343 |
``active``, ``processed``, ``loadavg``, ``sw_ident``, ``sw_ver`` |
| 1344 |
and ``sw_sys``. |
| 1345 |
|
| 1346 |
- Worker: Now keeps count of the total number of tasks processed, |
| 1347 |
not just by type (``all_active_count``). |
| 1348 |
|
| 1349 |
- Init-scripts: Fixed problem with reading configuration file |
| 1350 |
when the init-script is symlinked to a runlevel (e.g., ``S02celeryd``). |
| 1351 |
(Issue #1740). |
| 1352 |
|
| 1353 |
This also removed a rarely used feature where you can symlink the script |
| 1354 |
to provide alternative configurations. You instead copy the script |
| 1355 |
and give it a new name, but perhaps a better solution is to provide |
| 1356 |
arguments to ``CELERYD_OPTS`` to separate them: |
| 1357 |
|
| 1358 |
.. code-block:: bash |
| 1359 |
|
| 1360 |
CELERYD_NODES="X1 X2 Y1 Y2" |
| 1361 |
CELERYD_OPTS="-A:X1 x -A:X2 x -A:Y1 y -A:Y2 y" |
| 1362 |
|
| 1363 |
- Fallback chord unlock task is now always called after the chord header |
| 1364 |
(Issue #1700). |
| 1365 |
|
| 1366 |
This means that the unlock task won't be started if there's |
| 1367 |
an error sending the header. |
| 1368 |
|
| 1369 |
- Celery command: Fixed problem with arguments for some control commands. |
| 1370 |
|
| 1371 |
Fix contributed by Konstantin Podshumok. |
| 1372 |
|
| 1373 |
- Fixed bug in ``utcoffset`` where the offset when in DST would be |
| 1374 |
completely wrong (Issue #1743). |
| 1375 |
|
| 1376 |
- Worker: Errors occurring while attempting to serialize the result of a |
| 1377 |
task will now cause the task to be marked with failure and a |
| 1378 |
:class:`kombu.exceptions.EncodingError` error. |
| 1379 |
|
| 1380 |
Fix contributed by Ionel Cristian Mărieș. |
| 1381 |
|
| 1382 |
- Worker with :option:`-B <celery worker -B>` argument didn't properly |
| 1383 |
shut down the beat instance. |
| 1384 |
|
| 1385 |
- Worker: The ``%n`` and ``%h`` formats are now also supported by the |
| 1386 |
:option:`--logfile <celery worker --logfile>`, |
| 1387 |
:option:`--pidfile <celery worker --pidfile>` and |
| 1388 |
:option:`--statedb <celery worker --statedb>` arguments. |
| 1389 |
|
| 1390 |
Example: |
| 1391 |
|
| 1392 |
.. code-block:: bash |
| 1393 |
|
| 1394 |
$ celery -A proj worker -n foo@%h --logfile=%n.log --statedb=%n.db |
| 1395 |
|
| 1396 |
- Redis/Cache result backends: Will now timeout if keys evicted while trying |
| 1397 |
to join a chord. |
| 1398 |
|
| 1399 |
- The fallback unlock chord task now raises :exc:`Retry` so that the |
| 1400 |
retry even is properly logged by the worker. |
| 1401 |
|
| 1402 |
- Multi: Will no longer apply Eventlet/gevent monkey patches (Issue #1717). |
| 1403 |
|
| 1404 |
- Redis result backend: Now supports UNIX sockets. |
| 1405 |
|
| 1406 |
Like the Redis broker transport the result backend now also supports |
| 1407 |
using ``redis+socket:///tmp/redis.sock`` URLs. |
| 1408 |
|
| 1409 |
Contributed by Alcides Viamontes Esquivel. |
| 1410 |
|
| 1411 |
- Events: Events sent by clients was mistaken for worker related events |
| 1412 |
(Issue #1714). |
| 1413 |
|
| 1414 |
For ``events.State`` the tasks now have a ``Task.client`` attribute |
| 1415 |
that's set when a ``task-sent`` event is being received. |
| 1416 |
|
| 1417 |
Also, a clients logical clock isn't in sync with the cluster so |
| 1418 |
they live in a "time bubble." So for this reason monitors will no |
| 1419 |
longer attempt to merge with the clock of an event sent by a client, |
| 1420 |
instead it will fake the value by using the current clock with |
| 1421 |
a skew of -1. |
| 1422 |
|
| 1423 |
- Prefork pool: The method used to find terminated processes was flawed |
| 1424 |
in that it didn't also take into account missing ``popen`` objects. |
| 1425 |
|
| 1426 |
- Canvas: ``group`` and ``chord`` now works with anon signatures as long |
| 1427 |
as the group/chord object is associated with an app instance (Issue #1744). |
| 1428 |
|
| 1429 |
You can pass the app by using ``group(..., app=app)``. |
| 1430 |
|
| 1431 |
.. _version-3.1.6: |
| 1432 |
|
| 1433 |
3.1.6 |
| 1434 |
===== |
| 1435 |
:release-date: 2013-12-02 06:00 p.m. UTC |
| 1436 |
:release-by: Ask Solem |
| 1437 |
|
| 1438 |
- Now depends on :mod:`billiard` 3.3.0.10. |
| 1439 |
|
| 1440 |
- Now depends on :ref:`Kombu 3.0.7 <kombu:version-3.0.7>`. |
| 1441 |
|
| 1442 |
- Fixed problem where Mingle caused the worker to hang at start-up |
| 1443 |
(Issue #1686). |
| 1444 |
|
| 1445 |
- Beat: Would attempt to drop privileges twice (Issue #1708). |
| 1446 |
|
| 1447 |
- Windows: Fixed error with ``geteuid`` not being available (Issue #1676). |
| 1448 |
|
| 1449 |
- Tasks can now provide a list of expected error classes (Issue #1682). |
| 1450 |
|
| 1451 |
The list should only include errors that the task is expected to raise |
| 1452 |
during normal operation:: |
| 1453 |
|
| 1454 |
@task(throws=(KeyError, HttpNotFound)) |
| 1455 |
|
| 1456 |
What happens when an exceptions is raised depends on the type of error: |
| 1457 |
|
| 1458 |
- Expected errors (included in ``Task.throws``) |
| 1459 |
|
| 1460 |
Will be logged using severity ``INFO``, and traceback is excluded. |
| 1461 |
|
| 1462 |
- Unexpected errors |
| 1463 |
|
| 1464 |
Will be logged using severity ``ERROR``, with traceback included. |
| 1465 |
|
| 1466 |
- Cache result backend now compatible with Python 3 (Issue #1697). |
| 1467 |
|
| 1468 |
- CentOS init-script: Now compatible with SysV style init symlinks. |
| 1469 |
|
| 1470 |
Fix contributed by Jonathan Jordan. |
| 1471 |
|
| 1472 |
- Events: Fixed problem when task name isn't defined (Issue #1710). |
| 1473 |
|
| 1474 |
Fix contributed by Mher Movsisyan. |
| 1475 |
|
| 1476 |
- Task: Fixed unbound local errors (Issue #1684). |
| 1477 |
|
| 1478 |
Fix contributed by Markus Ullmann. |
| 1479 |
|
| 1480 |
- Canvas: Now unrolls groups with only one task (optimization) (Issue #1656). |
| 1481 |
|
| 1482 |
- Task: Fixed problem with ETA and timezones. |
| 1483 |
|
| 1484 |
Fix contributed by Alexander Koval. |
| 1485 |
|
| 1486 |
- Django: Worker now performs model validation (Issue #1681). |
| 1487 |
|
| 1488 |
- Task decorator now emits less confusing errors when used with |
| 1489 |
incorrect arguments (Issue #1692). |
| 1490 |
|
| 1491 |
- Task: New method ``Task.send_event`` can be used to send custom events |
| 1492 |
to Flower and other monitors. |
| 1493 |
|
| 1494 |
- Fixed a compatibility issue with non-abstract task classes |
| 1495 |
|
| 1496 |
- Events from clients now uses new node name format (``gen<pid>@<hostname>``). |
| 1497 |
|
| 1498 |
- Fixed rare bug with Callable not being defined at interpreter shutdown |
| 1499 |
(Issue #1678). |
| 1500 |
|
| 1501 |
Fix contributed by Nick Johnson. |
| 1502 |
|
| 1503 |
- Fixed Python 2.6 compatibility (Issue #1679). |
| 1504 |
|
| 1505 |
.. _version-3.1.5: |
| 1506 |
|
| 1507 |
3.1.5 |
| 1508 |
===== |
| 1509 |
:release-date: 2013-11-21 06:20 p.m. UTC |
| 1510 |
:release-by: Ask Solem |
| 1511 |
|
| 1512 |
- Now depends on :ref:`Kombu 3.0.6 <kombu:version-3.0.6>`. |
| 1513 |
|
| 1514 |
- Now depends on :mod:`billiard` 3.3.0.8 |
| 1515 |
|
| 1516 |
- App: ``config_from_object`` is now lazy (Issue #1665). |
| 1517 |
|
| 1518 |
- App: ``autodiscover_tasks`` is now lazy. |
| 1519 |
|
| 1520 |
Django users should now wrap access to the settings object |
| 1521 |
in a lambda:: |
| 1522 |
|
| 1523 |
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS) |
| 1524 |
|
| 1525 |
this ensures that the settings object isn't prepared |
| 1526 |
prematurely. |
| 1527 |
|
| 1528 |
- Fixed regression for :option:`--app <celery --app>` argument |
| 1529 |
experienced by some users (Issue #1653). |
| 1530 |
|
| 1531 |
- Worker: Now respects the :option:`--uid <celery worker --uid>` and |
| 1532 |
:option:`--gid <celery worker --gid>` arguments even if |
| 1533 |
:option:`--detach <celery worker --detach>` isn't enabled. |
| 1534 |
|
| 1535 |
- Beat: Now respects the :option:`--uid <celery beat --uid>` and |
| 1536 |
:option:`--gid <celery beat --gid>` arguments even if |
| 1537 |
:option:`--detach <celery beat --detach>` isn't enabled. |
| 1538 |
|
| 1539 |
- Python 3: Fixed unorderable error occurring with the worker |
| 1540 |
:option:`-B <celery worker -B>` argument enabled. |
| 1541 |
|
| 1542 |
- ``celery.VERSION`` is now a named tuple. |
| 1543 |
|
| 1544 |
- ``maybe_signature(list)`` is now applied recursively (Issue #1645). |
| 1545 |
|
| 1546 |
- ``celery shell`` command: Fixed ``IPython.frontend`` deprecation warning. |
| 1547 |
|
| 1548 |
- The default app no longer includes the built-in fix-ups. |
| 1549 |
|
| 1550 |
This fixes a bug where ``celery multi`` would attempt |
| 1551 |
to load the Django settings module before entering |
| 1552 |
the target working directory. |
| 1553 |
|
| 1554 |
- The Django daemonization tutorial was changed. |
| 1555 |
|
| 1556 |
Users no longer have to explicitly export ``DJANGO_SETTINGS_MODULE`` |
| 1557 |
in :file:`/etc/default/celeryd` when the new project layout is used. |
| 1558 |
|
| 1559 |
- Redis result backend: expiry value can now be 0 (Issue #1661). |
| 1560 |
|
| 1561 |
- Censoring settings now accounts for non-string keys (Issue #1663). |
| 1562 |
|
| 1563 |
- App: New ``autofinalize`` option. |
| 1564 |
|
| 1565 |
Apps are automatically finalized when the task registry is accessed. |
| 1566 |
You can now disable this behavior so that an exception is raised |
| 1567 |
instead. |
| 1568 |
|
| 1569 |
Example: |
| 1570 |
|
| 1571 |
.. code-block:: python |
| 1572 |
|
| 1573 |
app = Celery(autofinalize=False) |
| 1574 |
|
| 1575 |
# raises RuntimeError |
| 1576 |
tasks = app.tasks |
| 1577 |
|
| 1578 |
@app.task |
| 1579 |
def add(x, y): |
| 1580 |
return x + y |
| 1581 |
|
| 1582 |
# raises RuntimeError |
| 1583 |
add.delay(2, 2) |
| 1584 |
|
| 1585 |
app.finalize() |
| 1586 |
# no longer raises: |
| 1587 |
tasks = app.tasks |
| 1588 |
add.delay(2, 2) |
| 1589 |
|
| 1590 |
- The worker didn't send monitoring events during shutdown. |
| 1591 |
|
| 1592 |
- Worker: Mingle and gossip is now automatically disabled when |
| 1593 |
used with an unsupported transport (Issue #1664). |
| 1594 |
|
| 1595 |
- ``celery`` command: Preload options now supports |
| 1596 |
the rare ``--opt value`` format (Issue #1668). |
| 1597 |
|
| 1598 |
- ``celery`` command: Accidentally removed options |
| 1599 |
appearing before the sub-command, these are now moved to the end |
| 1600 |
instead. |
| 1601 |
|
| 1602 |
- Worker now properly responds to ``inspect stats`` commands |
| 1603 |
even if received before start-up is complete (Issue #1659). |
| 1604 |
|
| 1605 |
- :signal:`task_postrun` is now sent within a :keyword:`finally` block, |
| 1606 |
to make sure the signal is always sent. |
| 1607 |
|
| 1608 |
- Beat: Fixed syntax error in string formatting. |
| 1609 |
|
| 1610 |
Contributed by :github_user:`nadad`. |
| 1611 |
|
| 1612 |
- Fixed typos in the documentation. |
| 1613 |
|
| 1614 |
Fixes contributed by Loic Bistuer, :github_user:`sunfinite`. |
| 1615 |
|
| 1616 |
- Nested chains now works properly when constructed using the |
| 1617 |
``chain`` type instead of the ``|`` operator (Issue #1656). |
| 1618 |
|
| 1619 |
.. _version-3.1.4: |
| 1620 |
|
| 1621 |
3.1.4 |
| 1622 |
===== |
| 1623 |
:release-date: 2013-11-15 11:40 p.m. UTC |
| 1624 |
:release-by: Ask Solem |
| 1625 |
|
| 1626 |
- Now depends on :ref:`Kombu 3.0.5 <kombu:version-3.0.5>`. |
| 1627 |
|
| 1628 |
- Now depends on :mod:`billiard` 3.3.0.7 |
| 1629 |
|
| 1630 |
- Worker accidentally set a default socket timeout of 5 seconds. |
| 1631 |
|
| 1632 |
- Django: Fix-up now sets the default app so that threads will use |
| 1633 |
the same app instance (e.g., for :command:`manage.py runserver`). |
| 1634 |
|
| 1635 |
- Worker: Fixed Unicode error crash at start-up experienced by some users. |
| 1636 |
|
| 1637 |
- Calling ``.apply_async`` on an empty chain now works again (Issue #1650). |
| 1638 |
|
| 1639 |
- The ``celery multi show`` command now generates the same arguments |
| 1640 |
as the start command does. |
| 1641 |
|
| 1642 |
- The :option:`--app <celery --app>` argument could end up using a module |
| 1643 |
object instead of an app instance (with a resulting crash). |
| 1644 |
|
| 1645 |
- Fixed a syntax error problem in the beat init-script. |
| 1646 |
|
| 1647 |
Fix contributed by Vsevolod. |
| 1648 |
|
| 1649 |
- Tests now passing on PyPy 2.1 and 2.2. |
| 1650 |
|
| 1651 |
.. _version-3.1.3: |
| 1652 |
|
| 1653 |
3.1.3 |
| 1654 |
===== |
| 1655 |
:release-date: 2013-11-13 00:55 a.m. UTC |
| 1656 |
:release-by: Ask Solem |
| 1657 |
|
| 1658 |
- Fixed compatibility problem with Python 2.7.0 - 2.7.5 (Issue #1637) |
| 1659 |
|
| 1660 |
``unpack_from`` started supporting ``memoryview`` arguments |
| 1661 |
in Python 2.7.6. |
| 1662 |
|
| 1663 |
- Worker: :option:`-B <celery worker -B>` argument accidentally closed |
| 1664 |
files used for logging. |
| 1665 |
|
| 1666 |
- Task decorated tasks now keep their docstring (Issue #1636) |
| 1667 |
|
| 1668 |
.. _version-3.1.2: |
| 1669 |
|
| 1670 |
3.1.2 |
| 1671 |
===== |
| 1672 |
:release-date: 2013-11-12 08:00 p.m. UTC |
| 1673 |
:release-by: Ask Solem |
| 1674 |
|
| 1675 |
- Now depends on :mod:`billiard` 3.3.0.6 |
| 1676 |
|
| 1677 |
- No longer needs the billiard C extension to be installed. |
| 1678 |
|
| 1679 |
- The worker silently ignored task errors. |
| 1680 |
|
| 1681 |
- Django: Fixed ``ImproperlyConfigured`` error raised |
| 1682 |
when no database backend specified. |
| 1683 |
|
| 1684 |
Fix contributed by :github_user:`j0hnsmith`. |
| 1685 |
|
| 1686 |
- Prefork pool: Now using ``_multiprocessing.read`` with ``memoryview`` |
| 1687 |
if available. |
| 1688 |
|
| 1689 |
- ``close_open_fds`` now uses ``os.closerange`` if available. |
| 1690 |
|
| 1691 |
- ``get_fdmax`` now takes value from ``sysconfig`` if possible. |
| 1692 |
|
| 1693 |
.. _version-3.1.1: |
| 1694 |
|
| 1695 |
3.1.1 |
| 1696 |
===== |
| 1697 |
:release-date: 2013-11-11 06:30 p.m. UTC |
| 1698 |
:release-by: Ask Solem |
| 1699 |
|
| 1700 |
- Now depends on :mod:`billiard` 3.3.0.4. |
| 1701 |
|
| 1702 |
- Python 3: Fixed compatibility issues. |
| 1703 |
|
| 1704 |
- Windows: Accidentally showed warning that the billiard C extension |
| 1705 |
wasn't installed (Issue #1630). |
| 1706 |
|
| 1707 |
- Django: Tutorial updated with a solution that sets a default |
| 1708 |
:envvar:`DJANGO_SETTINGS_MODULE` so that it doesn't have to be typed |
| 1709 |
in with the :program:`celery` command. |
| 1710 |
|
| 1711 |
Also fixed typos in the tutorial, and added the settings |
| 1712 |
required to use the Django database backend. |
| 1713 |
|
| 1714 |
Thanks to Chris Ward, :github_user:`orarbel`. |
| 1715 |
|
| 1716 |
- Django: Fixed a problem when using the Django settings in Django 1.6. |
| 1717 |
|
| 1718 |
- Django: Fix-up shouldn't be applied if the django loader is active. |
| 1719 |
|
| 1720 |
- Worker: Fixed attribute error for ``human_write_stats`` when using the |
| 1721 |
compatibility prefork pool implementation. |
| 1722 |
|
| 1723 |
- Worker: Fixed compatibility with billiard without C extension. |
| 1724 |
|
| 1725 |
- Inspect.conf: Now supports a ``with_defaults`` argument. |
| 1726 |
|
| 1727 |
- Group.restore: The backend argument wasn't respected. |
| 1728 |
|
| 1729 |
.. _version-3.1.0: |
| 1730 |
|
| 1731 |
3.1.0 |
| 1732 |
======= |
| 1733 |
:release-date: 2013-11-09 11:00 p.m. UTC |
| 1734 |
:release-by: Ask Solem |
| 1735 |
|
| 1736 |
See :ref:`whatsnew-3.1`. |