| 1 |
.. _changelog-3.0: |
| 2 |
|
| 3 |
=============================== |
| 4 |
Change history for Celery 3.0 |
| 5 |
=============================== |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
|
| 10 |
If you're looking for versions prior to 3.0.x you should go to :ref:`history`. |
| 11 |
|
| 12 |
.. _version-3.0.24: |
| 13 |
|
| 14 |
3.0.24 |
| 15 |
====== |
| 16 |
:release-date: 2013-10-11 04:40 p.m. BST |
| 17 |
:release-by: Ask Solem |
| 18 |
|
| 19 |
- Now depends on :ref:`Kombu 2.5.15 <kombu:version-2.5.15>`. |
| 20 |
|
| 21 |
- Now depends on :pypi:`billiard` version 2.7.3.34. |
| 22 |
|
| 23 |
- AMQP Result backend: No longer caches queue declarations. |
| 24 |
|
| 25 |
The queues created by the AMQP result backend are always unique, |
| 26 |
so caching the declarations caused a slow memory leak. |
| 27 |
|
| 28 |
- Worker: Fixed crash when hostname contained Unicode characters. |
| 29 |
|
| 30 |
Contributed by Daodao. |
| 31 |
|
| 32 |
- The worker would no longer start if the `-P solo` pool was selected |
| 33 |
(Issue #1548). |
| 34 |
|
| 35 |
- Redis/Cache result backends wouldn't complete chords |
| 36 |
if any of the tasks were retried (Issue #1401). |
| 37 |
|
| 38 |
- Task decorator is no longer lazy if app is finalized. |
| 39 |
|
| 40 |
- AsyncResult: Fixed bug with ``copy(AsyncResult)`` when no |
| 41 |
``current_app`` available. |
| 42 |
|
| 43 |
- ResultSet: Now properly propagates app when passed string id's. |
| 44 |
|
| 45 |
- Loader now ignores :envvar:`CELERY_CONFIG_MODULE` if value is empty string. |
| 46 |
|
| 47 |
- Fixed race condition in Proxy object where it tried to |
| 48 |
delete an attribute twice, resulting in :exc:`AttributeError`. |
| 49 |
|
| 50 |
- Task methods now works with the :setting:`CELERY_ALWAYS_EAGER` setting |
| 51 |
(Issue #1478). |
| 52 |
|
| 53 |
- :class:`~kombu.common.Broadcast` queues were accidentally declared |
| 54 |
when publishing tasks (Issue #1540). |
| 55 |
|
| 56 |
- New :envvar:`C_FAKEFORK` environment variable can be used to |
| 57 |
debug the init-scripts. |
| 58 |
|
| 59 |
Setting this will skip the daemonization step so that errors |
| 60 |
printed to stderr after standard outs are closed can be seen: |
| 61 |
|
| 62 |
.. code-block:: console |
| 63 |
|
| 64 |
$ C_FAKEFORK /etc/init.d/celeryd start |
| 65 |
|
| 66 |
This works with the `celery multi` command in general. |
| 67 |
|
| 68 |
- ``get_pickleable_etype`` didn't always return a value (Issue #1556). |
| 69 |
- Fixed bug where ``app.GroupResult.restore`` would fall back to the default |
| 70 |
app. |
| 71 |
|
| 72 |
- Fixed rare bug where built-in tasks would use the current_app. |
| 73 |
|
| 74 |
- :func:`~celery.platforms.maybe_fileno` now handles :exc:`ValueError`. |
| 75 |
|
| 76 |
.. _version-3.0.23: |
| 77 |
|
| 78 |
3.0.23 |
| 79 |
====== |
| 80 |
:release-date: 2013-09-02 01:00 p.m. BST |
| 81 |
:release-by: Ask Solem |
| 82 |
|
| 83 |
- Now depends on :ref:`Kombu 2.5.14 <kombu:version-2.5.14>`. |
| 84 |
|
| 85 |
- ``send_task`` didn't honor ``link`` and ``link_error`` arguments. |
| 86 |
|
| 87 |
This had the side effect of chains not calling unregistered tasks, |
| 88 |
silently discarding them. |
| 89 |
|
| 90 |
Fix contributed by Taylor Nelson. |
| 91 |
|
| 92 |
- :mod:`celery.state`: Optimized precedence lookup. |
| 93 |
|
| 94 |
Contributed by Matt Robenolt. |
| 95 |
|
| 96 |
- POSIX: Daemonization didn't redirect ``sys.stdin`` to ``/dev/null``. |
| 97 |
|
| 98 |
Fix contributed by Alexander Smirnov. |
| 99 |
|
| 100 |
- Canvas: group bug caused fallback to default app when ``.apply_async`` used |
| 101 |
(Issue #1516) |
| 102 |
|
| 103 |
- Canvas: generator arguments wasn't always pickleable. |
| 104 |
|
| 105 |
.. _version-3.0.22: |
| 106 |
|
| 107 |
3.0.22 |
| 108 |
====== |
| 109 |
:release-date: 2013-08-16 04:30 p.m. BST |
| 110 |
:release-by: Ask Solem |
| 111 |
|
| 112 |
- Now depends on :ref:`Kombu 2.5.13 <kombu:version-2.5.13>`. |
| 113 |
|
| 114 |
- Now depends on :pypi:`billiard` 2.7.3.32 |
| 115 |
|
| 116 |
- Fixed bug with monthly and yearly Crontabs (Issue #1465). |
| 117 |
|
| 118 |
Fix contributed by Guillaume Gauvrit. |
| 119 |
|
| 120 |
- Fixed memory leak caused by time limits (Issue #1129, Issue #1427) |
| 121 |
|
| 122 |
- Worker will now sleep if being restarted more than 5 times |
| 123 |
in one second to avoid spamming with ``worker-online`` events. |
| 124 |
|
| 125 |
- Includes documentation fixes |
| 126 |
|
| 127 |
Contributed by: Ken Fromm, Andreas Savvides, Alex Kiriukha, |
| 128 |
Michael Fladischer. |
| 129 |
|
| 130 |
.. _version-3.0.21: |
| 131 |
|
| 132 |
3.0.21 |
| 133 |
====== |
| 134 |
:release-date: 2013-07-05 04:30 p.m. BST |
| 135 |
:release-by: Ask Solem |
| 136 |
|
| 137 |
- Now depends on :pypi:`billiard` 2.7.3.31. |
| 138 |
|
| 139 |
This version fixed a bug when running without the billiard C extension. |
| 140 |
|
| 141 |
- 3.0.20 broke eventlet/gevent support (worker not starting). |
| 142 |
|
| 143 |
- Fixed memory leak problem when MongoDB result backend was used with the |
| 144 |
gevent pool. |
| 145 |
|
| 146 |
Fix contributed by Ross Lawley. |
| 147 |
|
| 148 |
.. _version-3.0.20: |
| 149 |
|
| 150 |
3.0.20 |
| 151 |
====== |
| 152 |
:release-date: 2013-06-28 04:00 p.m. BST |
| 153 |
:release-by: Ask Solem |
| 154 |
|
| 155 |
- Contains workaround for deadlock problems. |
| 156 |
|
| 157 |
A better solution will be part of Celery 3.1. |
| 158 |
|
| 159 |
- Now depends on :ref:`Kombu 2.5.12 <kombu:version-2.5.12>`. |
| 160 |
|
| 161 |
- Now depends on :pypi:`billiard` 2.7.3.30. |
| 162 |
|
| 163 |
- :option:`--loader <celery --loader>` argument no longer supported |
| 164 |
importing loaders from the current directory. |
| 165 |
|
| 166 |
- [Worker] Fixed memory leak when restarting after connection lost |
| 167 |
(Issue #1325). |
| 168 |
|
| 169 |
- [Worker] Fixed UnicodeDecodeError at start-up (Issue #1373). |
| 170 |
|
| 171 |
Fix contributed by Jessica Tallon. |
| 172 |
|
| 173 |
- [Worker] Now properly rewrites unpickleable exceptions again. |
| 174 |
|
| 175 |
- Fixed possible race condition when evicting items from the revoked task set. |
| 176 |
|
| 177 |
- [generic-init.d] Fixed compatibility with Ubuntu's minimal Dash |
| 178 |
shell (Issue #1387). |
| 179 |
|
| 180 |
Fix contributed by :github_user:`monkut`. |
| 181 |
|
| 182 |
- ``Task.apply``/``ALWAYS_EAGER`` now also executes callbacks and errbacks |
| 183 |
(Issue #1336). |
| 184 |
|
| 185 |
- [Worker] The :signal:`worker-shutdown` signal was no longer being dispatched |
| 186 |
(Issue #1339)j |
| 187 |
|
| 188 |
- [Python 3] Fixed problem with threading.Event. |
| 189 |
|
| 190 |
Fix contributed by Xavier Ordoquy. |
| 191 |
|
| 192 |
- [Python 3] Now handles ``io.UnsupportedOperation`` that may be raised |
| 193 |
by ``file.fileno()`` in Python 3. |
| 194 |
|
| 195 |
- [Python 3] Fixed problem with ``qualname``. |
| 196 |
|
| 197 |
- [events.State] Now ignores unknown event-groups. |
| 198 |
|
| 199 |
- [MongoDB backend] No longer uses deprecated ``safe`` parameter. |
| 200 |
|
| 201 |
Fix contributed by :github_user:`rfkrocktk`. |
| 202 |
|
| 203 |
- The eventlet pool now imports on Windows. |
| 204 |
|
| 205 |
- [Canvas] Fixed regression where immutable chord members may receive |
| 206 |
arguments (Issue #1340). |
| 207 |
|
| 208 |
Fix contributed by Peter Brook. |
| 209 |
|
| 210 |
- [Canvas] chain now accepts generator argument again (Issue #1319). |
| 211 |
|
| 212 |
- ``celery.migrate`` command now consumes from all queues if no queues |
| 213 |
specified. |
| 214 |
|
| 215 |
Fix contributed by John Watson. |
| 216 |
|
| 217 |
.. _version-3.0.19: |
| 218 |
|
| 219 |
3.0.19 |
| 220 |
====== |
| 221 |
:release-date: 2013-04-17 04:30:00 p.m. BST |
| 222 |
:release-by: Ask Solem |
| 223 |
|
| 224 |
- Now depends on :pypi:`billiard` 2.7.3.28 |
| 225 |
|
| 226 |
- A Python 3 related fix managed to disable the deadlock fix |
| 227 |
announced in 3.0.18. |
| 228 |
|
| 229 |
Tests have been added to make sure this doesn't happen again. |
| 230 |
|
| 231 |
- Task retry policy: Default max_retries is now 3. |
| 232 |
|
| 233 |
This ensures clients won't be hanging while the broker is down. |
| 234 |
|
| 235 |
.. note:: |
| 236 |
|
| 237 |
You can set a longer retry for the worker by |
| 238 |
using the :signal:`celeryd_after_setup` signal: |
| 239 |
|
| 240 |
.. code-block:: python |
| 241 |
|
| 242 |
from celery.signals import celeryd_after_setup |
| 243 |
|
| 244 |
@celeryd_after_setup.connect |
| 245 |
def configure_worker(instance, conf, **kwargs): |
| 246 |
conf.CELERY_TASK_PUBLISH_RETRY_POLICY = { |
| 247 |
'max_retries': 100, |
| 248 |
'interval_start': 0, |
| 249 |
'interval_max': 1, |
| 250 |
'interval_step': 0.2, |
| 251 |
} |
| 252 |
|
| 253 |
- Worker: Will now properly display message body in error messages |
| 254 |
even if the body is a buffer instance. |
| 255 |
|
| 256 |
- 3.0.18 broke the MongoDB result backend (Issue #1303). |
| 257 |
|
| 258 |
.. _version-3.0.18: |
| 259 |
|
| 260 |
3.0.18 |
| 261 |
====== |
| 262 |
:release-date: 2013-04-12 05:00:00 p.m. BST |
| 263 |
:release-by: Ask Solem |
| 264 |
|
| 265 |
- Now depends on :pypi:`kombu` 2.5.10. |
| 266 |
|
| 267 |
See the :ref:`kombu changelog <kombu:version-2.5.10>`. |
| 268 |
|
| 269 |
- Now depends on :pypi:`billiard` 2.7.3.27. |
| 270 |
|
| 271 |
- Can now specify a white-list of accepted serializers using |
| 272 |
the new :setting:`CELERY_ACCEPT_CONTENT` setting. |
| 273 |
|
| 274 |
This means that you can force the worker to discard messages |
| 275 |
serialized with pickle and other untrusted serializers. |
| 276 |
For example to only allow JSON serialized messages use:: |
| 277 |
|
| 278 |
CELERY_ACCEPT_CONTENT = ['json'] |
| 279 |
|
| 280 |
you can also specify MIME types in the white-list:: |
| 281 |
|
| 282 |
CELERY_ACCEPT_CONTENT = ['application/json'] |
| 283 |
|
| 284 |
- Fixed deadlock in multiprocessing's pool caused by the |
| 285 |
semaphore not being released when terminated by signal. |
| 286 |
|
| 287 |
- Processes Pool: It's now possible to debug pool processes using GDB. |
| 288 |
|
| 289 |
- ``celery report`` now censors possibly secret settings, like passwords |
| 290 |
and secret tokens. |
| 291 |
|
| 292 |
You should still check the output before pasting anything |
| 293 |
on the internet. |
| 294 |
|
| 295 |
- Connection URLs now ignore multiple '+' tokens. |
| 296 |
|
| 297 |
- Worker/``statedb``: Now uses pickle protocol 2 (Python 2.5+) |
| 298 |
|
| 299 |
- Fixed Python 3 compatibility issues. |
| 300 |
|
| 301 |
- Worker: A warning is now given if a worker is started with the |
| 302 |
same node name as an existing worker. |
| 303 |
|
| 304 |
- Worker: Fixed a deadlock that could occur while revoking tasks (Issue #1297). |
| 305 |
|
| 306 |
- Worker: The :sig:`HUP` handler now closes all open file descriptors |
| 307 |
before restarting to ensure file descriptors doesn't leak (Issue #1270). |
| 308 |
|
| 309 |
- Worker: Optimized storing/loading the revoked tasks list (Issue #1289). |
| 310 |
|
| 311 |
After this change the :option:`celery worker --statedb` file will |
| 312 |
take up more disk space, but loading from and storing the revoked |
| 313 |
tasks will be considerably faster (what before took 5 minutes will |
| 314 |
now take less than a second). |
| 315 |
|
| 316 |
- Celery will now suggest alternatives if there's a typo in the |
| 317 |
broker transport name (e.g., ``ampq`` -> ``amqp``). |
| 318 |
|
| 319 |
- Worker: The auto-reloader would cause a crash if a monitored file |
| 320 |
was unlinked. |
| 321 |
|
| 322 |
Fix contributed by Agris Ameriks. |
| 323 |
|
| 324 |
- Fixed AsyncResult pickling error. |
| 325 |
|
| 326 |
Fix contributed by Thomas Minor. |
| 327 |
|
| 328 |
- Fixed handling of Unicode in logging output when using log colors |
| 329 |
(Issue #427). |
| 330 |
|
| 331 |
- :class:`~celery.app.utils.ConfigurationView` is now a ``MutableMapping``. |
| 332 |
|
| 333 |
Contributed by Aaron Harnly. |
| 334 |
|
| 335 |
- Fixed memory leak in LRU cache implementation. |
| 336 |
|
| 337 |
Fix contributed by Romuald Brunet. |
| 338 |
|
| 339 |
- ``celery.contrib.rdb``: Now works when sockets are in non-blocking mode. |
| 340 |
|
| 341 |
Fix contributed by Theo Spears. |
| 342 |
|
| 343 |
- The `inspect reserved` remote control command included active (started) tasks |
| 344 |
with the reserved tasks (Issue #1030). |
| 345 |
|
| 346 |
- The :signal:`task_failure` signal received a modified traceback object |
| 347 |
meant for pickling purposes, this has been fixed so that it now |
| 348 |
receives the real traceback instead. |
| 349 |
|
| 350 |
- The ``@task`` decorator silently ignored positional arguments, |
| 351 |
it now raises the expected :exc:`TypeError` instead (Issue #1125). |
| 352 |
|
| 353 |
- The worker will now properly handle messages with invalid |
| 354 |
ETA/expires fields (Issue #1232). |
| 355 |
|
| 356 |
- The ``pool_restart`` remote control command now reports |
| 357 |
an error if the :setting:`CELERYD_POOL_RESTARTS` setting isn't set. |
| 358 |
|
| 359 |
- :meth:`@add_defaults`` can now be used with non-dict objects. |
| 360 |
|
| 361 |
- Fixed compatibility problems in the Proxy class (Issue #1087). |
| 362 |
|
| 363 |
The class attributes ``__module__``, ``__name__`` and ``__doc__`` |
| 364 |
are now meaningful string objects. |
| 365 |
|
| 366 |
Thanks to Marius Gedminas. |
| 367 |
|
| 368 |
- MongoDB Backend: The :setting:`MONGODB_BACKEND_SETTINGS` setting |
| 369 |
now accepts a ``option`` key that lets you forward arbitrary kwargs |
| 370 |
to the underlying ``pymongo.Connection`` object (Issue #1015). |
| 371 |
|
| 372 |
- Beat: The daily backend cleanup task is no longer enabled |
| 373 |
for result backends that support automatic result expiration (Issue #1031). |
| 374 |
|
| 375 |
- Canvas list operations now takes application instance from the first |
| 376 |
task in the list, instead of depending on the ``current_app`` (Issue #1249). |
| 377 |
|
| 378 |
- Worker: Message decoding error log message now includes traceback |
| 379 |
information. |
| 380 |
|
| 381 |
- Worker: The start-up banner now includes system platform. |
| 382 |
|
| 383 |
- ``celery inspect|status|control`` now gives an error if used |
| 384 |
with a SQL based broker transport. |
| 385 |
|
| 386 |
.. _version-3.0.17: |
| 387 |
|
| 388 |
3.0.17 |
| 389 |
====== |
| 390 |
:release-date: 2013-03-22 04:00:00 p.m. UTC |
| 391 |
:release-by: Ask Solem |
| 392 |
|
| 393 |
- Now depends on kombu 2.5.8 |
| 394 |
|
| 395 |
- Now depends on billiard 2.7.3.23 |
| 396 |
|
| 397 |
- RabbitMQ/Redis: thread-less and lock-free rate-limit implementation. |
| 398 |
|
| 399 |
This means that rate limits pose minimal overhead when used with |
| 400 |
RabbitMQ/Redis or future transports using the event-loop, |
| 401 |
and that the rate-limit implementation is now thread-less and lock-free. |
| 402 |
|
| 403 |
The thread-based transports will still use the old implementation for |
| 404 |
now, but the plan is to use the timer also for other |
| 405 |
broker transports in Celery 3.1. |
| 406 |
|
| 407 |
- Rate limits now works with eventlet/gevent if using RabbitMQ/Redis as the |
| 408 |
broker. |
| 409 |
|
| 410 |
- A regression caused ``task.retry`` to ignore additional keyword arguments. |
| 411 |
|
| 412 |
Extra keyword arguments are now used as execution options again. |
| 413 |
Fix contributed by Simon Engledew. |
| 414 |
|
| 415 |
- Windows: Fixed problem with the worker trying to pickle the Django settings |
| 416 |
module at worker start-up. |
| 417 |
|
| 418 |
- generic-init.d: No longer double quotes ``$CELERYD_CHDIR`` (Issue #1235). |
| 419 |
|
| 420 |
- generic-init.d: Removes bash-specific syntax. |
| 421 |
|
| 422 |
Fix contributed by Pär Wieslander. |
| 423 |
|
| 424 |
- Cassandra Result Backend: Now handles the |
| 425 |
:exc:`~pycassa.AllServersUnavailable` error (Issue #1010). |
| 426 |
|
| 427 |
Fix contributed by Jared Biel. |
| 428 |
|
| 429 |
- Result: Now properly forwards apps to GroupResults when deserializing |
| 430 |
(Issue #1249). |
| 431 |
|
| 432 |
Fix contributed by Charles-Axel Dein. |
| 433 |
|
| 434 |
- ``GroupResult.revoke`` now supports the ``terminate`` and ``signal`` |
| 435 |
keyword arguments. |
| 436 |
|
| 437 |
- Worker: Multiprocessing pool workers now import task modules/configuration |
| 438 |
before setting up the logging system so that logging signals can be |
| 439 |
connected before they're dispatched. |
| 440 |
|
| 441 |
- chord: The ``AsyncResult`` instance returned now has its ``parent`` |
| 442 |
attribute set to the header ``GroupResult``. |
| 443 |
|
| 444 |
This is consistent with how ``chain`` works. |
| 445 |
|
| 446 |
.. _version-3.0.16: |
| 447 |
|
| 448 |
3.0.16 |
| 449 |
====== |
| 450 |
:release-date: 2013-03-07 04:00:00 p.m. UTC |
| 451 |
:release-by: Ask Solem |
| 452 |
|
| 453 |
- Happy International Women's Day! |
| 454 |
|
| 455 |
We have a long way to go, so this is a chance for you to get involved in one |
| 456 |
of the organizations working for making our communities more |
| 457 |
diverse. |
| 458 |
|
| 459 |
- PyLadies — http://pyladies.com |
| 460 |
- Girls Who Code — http://www.girlswhocode.com |
| 461 |
- Women Who Code — http://www.meetup.com/Women-Who-Code-SF/ |
| 462 |
|
| 463 |
- Now depends on :pypi:`kombu` version 2.5.7 |
| 464 |
|
| 465 |
- Now depends on :pypi:`billiard` version 2.7.3.22 |
| 466 |
|
| 467 |
- AMQP heartbeats are now disabled by default. |
| 468 |
|
| 469 |
Some users experiences issues with heartbeats enabled, |
| 470 |
and it's not strictly necessary to use them. |
| 471 |
|
| 472 |
If you're experiencing problems detecting connection failures, |
| 473 |
you can re-enable heartbeats by configuring the :setting:`BROKER_HEARTBEAT` |
| 474 |
setting. |
| 475 |
|
| 476 |
- Worker: Now propagates connection errors occurring in multiprocessing |
| 477 |
callbacks, so that the connection can be reset (Issue #1226). |
| 478 |
|
| 479 |
- Worker: Now propagates connection errors occurring in timer callbacks, |
| 480 |
so that the connection can be reset. |
| 481 |
|
| 482 |
- The modules in :setting:`CELERY_IMPORTS` and :setting:`CELERY_INCLUDE` |
| 483 |
are now imported in the original order (Issue #1161). |
| 484 |
|
| 485 |
The modules in :setting:`CELERY_IMPORTS` will be imported first, |
| 486 |
then continued by :setting:`CELERY_INCLUDE`. |
| 487 |
|
| 488 |
Thanks to Joey Wilhelm. |
| 489 |
|
| 490 |
- New bash completion for ``celery`` available in the git repository: |
| 491 |
|
| 492 |
https://github.com/celery/celery/tree/3.0/extra/bash-completion |
| 493 |
|
| 494 |
You can source this file or put it in ``bash_completion.d`` to |
| 495 |
get auto-completion for the ``celery`` command-line utility. |
| 496 |
|
| 497 |
- The node name of a worker can now include unicode characters (Issue #1186). |
| 498 |
|
| 499 |
- The repr of a ``crontab`` object now displays correctly (Issue #972). |
| 500 |
|
| 501 |
- ``events.State`` no longer modifies the original event dictionary. |
| 502 |
|
| 503 |
- No longer uses ``Logger.warn`` deprecated in Python 3. |
| 504 |
|
| 505 |
- Cache Backend: Now works with chords again (Issue #1094). |
| 506 |
|
| 507 |
- Chord unlock now handles errors occurring while calling the callback. |
| 508 |
|
| 509 |
- Generic worker init.d script: Status check is now performed by |
| 510 |
querying the pid of the instance instead of sending messages. |
| 511 |
|
| 512 |
Contributed by Milen Pavlov. |
| 513 |
|
| 514 |
- Improved init-scripts for CentOS. |
| 515 |
|
| 516 |
- Updated to support Celery 3.x conventions. |
| 517 |
- Now uses CentOS built-in ``status`` and ``killproc`` |
| 518 |
- Support for multi-node / multi-pid worker services. |
| 519 |
- Standard color-coded CentOS service-init output. |
| 520 |
- A test suite. |
| 521 |
|
| 522 |
Contributed by Milen Pavlov. |
| 523 |
|
| 524 |
- ``ResultSet.join`` now always works with empty result set (Issue #1219). |
| 525 |
|
| 526 |
- A ``group`` consisting of a single task is now supported (Issue #1219). |
| 527 |
|
| 528 |
- Now supports the ``pycallgraph`` program (Issue #1051). |
| 529 |
|
| 530 |
- Fixed Jython compatibility problems. |
| 531 |
|
| 532 |
- Django tutorial: Now mentions that the example app must be added to |
| 533 |
``INSTALLED_APPS`` (Issue #1192). |
| 534 |
|
| 535 |
.. _version-3.0.15: |
| 536 |
|
| 537 |
3.0.15 |
| 538 |
====== |
| 539 |
:release-date: 2013-02-11 04:30:00 p.m. UTC |
| 540 |
:release-by: Ask Solem |
| 541 |
|
| 542 |
- Now depends on billiard 2.7.3.21 which fixed a syntax error crash. |
| 543 |
|
| 544 |
- Fixed bug with :setting:`CELERY_SEND_TASK_SENT_EVENT`. |
| 545 |
|
| 546 |
.. _version-3.0.14: |
| 547 |
|
| 548 |
3.0.14 |
| 549 |
====== |
| 550 |
:release-date: 2013-02-08 05:00:00 p.m. UTC |
| 551 |
:release-by: Ask Solem |
| 552 |
|
| 553 |
- Now depends on Kombu 2.5.6 |
| 554 |
|
| 555 |
- Now depends on billiard 2.7.3.20 |
| 556 |
|
| 557 |
- ``execv`` is now disabled by default. |
| 558 |
|
| 559 |
It was causing too many problems for users, you can still enable |
| 560 |
it using the `CELERYD_FORCE_EXECV` setting. |
| 561 |
|
| 562 |
execv was only enabled when transports other than AMQP/Redis was used, |
| 563 |
and it's there to prevent deadlocks caused by mutexes not being released |
| 564 |
before the process forks. Unfortunately it also changes the environment |
| 565 |
introducing many corner case bugs that're hard to fix without adding |
| 566 |
horrible hacks. Deadlock issues are reported far less often than the |
| 567 |
bugs that execv are causing, so we now disable it by default. |
| 568 |
|
| 569 |
Work is in motion to create non-blocking versions of these transports |
| 570 |
so that execv isn't necessary (which is the situation with the amqp |
| 571 |
and redis broker transports) |
| 572 |
|
| 573 |
- Chord exception behavior defined (Issue #1172). |
| 574 |
|
| 575 |
From Celery 3.1 the chord callback will change state to FAILURE |
| 576 |
when a task part of a chord raises an exception. |
| 577 |
|
| 578 |
It was never documented what happens in this case, |
| 579 |
and the actual behavior was very unsatisfactory, indeed |
| 580 |
it will just forward the exception value to the chord callback. |
| 581 |
|
| 582 |
For backward compatibility reasons we don't change to the new |
| 583 |
behavior in a bugfix release, even if the current behavior was |
| 584 |
never documented. Instead you can enable the |
| 585 |
:setting:`CELERY_CHORD_PROPAGATES` setting to get the new behavior |
| 586 |
that'll be default from Celery 3.1. |
| 587 |
|
| 588 |
See more at :ref:`chord-errors`. |
| 589 |
|
| 590 |
- worker: Fixes bug with ignored and retried tasks. |
| 591 |
|
| 592 |
The ``on_chord_part_return`` and ``Task.after_return`` callbacks, |
| 593 |
nor the ``task_postrun`` signal should be called when the task was |
| 594 |
retried/ignored. |
| 595 |
|
| 596 |
Fix contributed by Vlad. |
| 597 |
|
| 598 |
- ``GroupResult.join_native`` now respects the ``propagate`` argument. |
| 599 |
|
| 600 |
- ``subtask.id`` added as an alias to ``subtask['options'].id`` |
| 601 |
|
| 602 |
.. code-block:: pycon |
| 603 |
|
| 604 |
>>> s = add.s(2, 2) |
| 605 |
>>> s.id = 'my-id' |
| 606 |
>>> s['options'] |
| 607 |
{'task_id': 'my-id'} |
| 608 |
|
| 609 |
>>> s.id |
| 610 |
'my-id' |
| 611 |
|
| 612 |
- worker: Fixed error `Could not start worker processes` occurring |
| 613 |
when restarting after connection failure (Issue #1118). |
| 614 |
|
| 615 |
- Adds new signal :signal:`task-retried` (Issue #1169). |
| 616 |
|
| 617 |
- `celery events --dumper` now handles connection loss. |
| 618 |
|
| 619 |
- Will now retry sending the task-sent event in case of connection failure. |
| 620 |
|
| 621 |
- amqp backend: Now uses ``Message.requeue`` instead of republishing |
| 622 |
the message after poll. |
| 623 |
|
| 624 |
- New :setting:`BROKER_HEARTBEAT_CHECKRATE` setting introduced to modify the |
| 625 |
rate at which broker connection heartbeats are monitored. |
| 626 |
|
| 627 |
The default value was also changed from 3.0 to 2.0. |
| 628 |
|
| 629 |
- :class:`celery.events.state.State` is now pickleable. |
| 630 |
|
| 631 |
Fix contributed by Mher Movsisyan. |
| 632 |
|
| 633 |
- :class:`celery.utils.functional.LRUCache` is now pickleable. |
| 634 |
|
| 635 |
Fix contributed by Mher Movsisyan. |
| 636 |
|
| 637 |
- The stats broadcast command now includes the workers pid. |
| 638 |
|
| 639 |
Contributed by Mher Movsisyan. |
| 640 |
|
| 641 |
- New ``conf`` remote control command to get a workers current configuration. |
| 642 |
|
| 643 |
Contributed by Mher Movsisyan. |
| 644 |
|
| 645 |
- Adds the ability to modify the chord unlock task's countdown |
| 646 |
argument (Issue #1146). |
| 647 |
|
| 648 |
Contributed by Jun Sakai |
| 649 |
|
| 650 |
- beat: The scheduler now uses the `now()`` method of the schedule, |
| 651 |
so that schedules can provide a custom way to get the current date and time. |
| 652 |
|
| 653 |
Contributed by Raphaël Slinckx |
| 654 |
|
| 655 |
- Fixed pickling of configuration modules on Windows or when execv is used |
| 656 |
(Issue #1126). |
| 657 |
|
| 658 |
- Multiprocessing logger is now configured with loglevel ``ERROR`` |
| 659 |
by default. |
| 660 |
|
| 661 |
Since 3.0 the multiprocessing loggers were disabled by default |
| 662 |
(only configured when the :envvar:`MP_LOG` environment variable was set). |
| 663 |
|
| 664 |
.. _version-3.0.13: |
| 665 |
|
| 666 |
3.0.13 |
| 667 |
====== |
| 668 |
:release-date: 2013-01-07 04:00:00 p.m. UTC |
| 669 |
:release-by: Ask Solem |
| 670 |
|
| 671 |
- Now depends on Kombu 2.5 |
| 672 |
|
| 673 |
- :pypi:`amqp` has replaced :pypi:`amqplib` as the default transport, |
| 674 |
gaining support for AMQP 0.9, and the RabbitMQ extensions, |
| 675 |
including Consumer Cancel Notifications and heartbeats. |
| 676 |
|
| 677 |
- support for multiple connection URLs for failover. |
| 678 |
|
| 679 |
- Read more in the :ref:`Kombu 2.5 changelog <kombu:version-2.5.0>`. |
| 680 |
|
| 681 |
- Now depends on billiard 2.7.3.19 |
| 682 |
|
| 683 |
- Fixed a deadlock issue that could occur when the producer pool |
| 684 |
inherited the connection pool instance of the parent process. |
| 685 |
|
| 686 |
- The :option:`--loader <celery --loader>` option now works again (Issue #1066). |
| 687 |
|
| 688 |
- :program:`celery` umbrella command: All sub-commands now supports |
| 689 |
the :option:`--workdir <celery --workdir>` option (Issue #1063). |
| 690 |
|
| 691 |
- Groups included in chains now give GroupResults (Issue #1057) |
| 692 |
|
| 693 |
Previously it would incorrectly add a regular result instead of a group |
| 694 |
result, but now this works: |
| 695 |
|
| 696 |
.. code-block:: pycon |
| 697 |
|
| 698 |
>>> # [4 + 4, 4 + 8, 16 + 8] |
| 699 |
>>> res = (add.s(2, 2) | group(add.s(4), add.s(8), add.s(16)))() |
| 700 |
>>> res |
| 701 |
<GroupResult: a0acf905-c704-499e-b03a-8d445e6398f7 [ |
| 702 |
4346501c-cb99-4ad8-8577-12256c7a22b1, |
| 703 |
b12ead10-a622-4d44-86e9-3193a778f345, |
| 704 |
26c7a420-11f3-4b33-8fac-66cd3b62abfd]> |
| 705 |
|
| 706 |
- Chains can now chain other chains and use partial arguments (Issue #1057). |
| 707 |
|
| 708 |
Example: |
| 709 |
|
| 710 |
.. code-block:: pycon |
| 711 |
|
| 712 |
>>> c1 = (add.s(2) | add.s(4)) |
| 713 |
>>> c2 = (add.s(8) | add.s(16)) |
| 714 |
|
| 715 |
>>> c3 = (c1 | c2) |
| 716 |
|
| 717 |
>>> # 8 + 2 + 4 + 8 + 16 |
| 718 |
>>> assert c3(8).get() == 38 |
| 719 |
|
| 720 |
- Subtasks can now be used with unregistered tasks. |
| 721 |
|
| 722 |
You can specify subtasks even if you just have the name:: |
| 723 |
|
| 724 |
>>> s = subtask(task_name, args=(), kwargs=()) |
| 725 |
>>> s.delay() |
| 726 |
|
| 727 |
- The :program:`celery shell` command now always adds the current |
| 728 |
directory to the module path. |
| 729 |
|
| 730 |
- The worker will now properly handle the :exc:`pytz.AmbiguousTimeError` |
| 731 |
exception raised when an ETA/countdown is prepared while being in DST |
| 732 |
transition (Issue #1061). |
| 733 |
|
| 734 |
- force_execv: Now makes sure that task symbols in the original |
| 735 |
task modules will always use the correct app instance (Issue #1072). |
| 736 |
|
| 737 |
- AMQP Backend: Now republishes result messages that have been polled |
| 738 |
(using ``result.ready()`` and friends, ``result.get()`` won't do this |
| 739 |
in this version). |
| 740 |
|
| 741 |
- Crontab schedule values can now "wrap around" |
| 742 |
|
| 743 |
This means that values like ``11-1`` translates to ``[11, 12, 1]``. |
| 744 |
|
| 745 |
Contributed by Loren Abrams. |
| 746 |
|
| 747 |
- ``multi stopwait`` command now shows the pid of processes. |
| 748 |
|
| 749 |
Contributed by Loren Abrams. |
| 750 |
|
| 751 |
- Handling of ETA/countdown fixed when the :setting:`CELERY_ENABLE_UTC` |
| 752 |
setting is disabled (Issue #1065). |
| 753 |
|
| 754 |
- A number of unneeded properties were included in messages, |
| 755 |
caused by accidentally passing ``Queue.as_dict`` as message properties. |
| 756 |
|
| 757 |
- Rate limit values can now be float |
| 758 |
|
| 759 |
This also extends the string format so that values like ``"0.5/s"`` works. |
| 760 |
|
| 761 |
Contributed by Christoph Krybus |
| 762 |
|
| 763 |
- Fixed a typo in the broadcast routing documentation (Issue #1026). |
| 764 |
|
| 765 |
- Rewrote confusing section about idempotence in the task user guide. |
| 766 |
|
| 767 |
- Fixed typo in the daemonization tutorial (Issue #1055). |
| 768 |
|
| 769 |
- Fixed several typos in the documentation. |
| 770 |
|
| 771 |
Contributed by Marius Gedminas. |
| 772 |
|
| 773 |
- Batches: Now works when using the eventlet pool. |
| 774 |
|
| 775 |
Fix contributed by Thomas Grainger. |
| 776 |
|
| 777 |
- Batches: Added example sending results to ``celery.contrib.batches``. |
| 778 |
|
| 779 |
Contributed by Thomas Grainger. |
| 780 |
|
| 781 |
- MongoDB backend: Connection ``max_pool_size`` can now be set in |
| 782 |
:setting:`CELERY_MONGODB_BACKEND_SETTINGS`. |
| 783 |
|
| 784 |
Contributed by Craig Younkins. |
| 785 |
|
| 786 |
- Fixed problem when using earlier versions of :pypi:`pytz`. |
| 787 |
|
| 788 |
Fix contributed by Vlad. |
| 789 |
|
| 790 |
- Docs updated to include the default value for the |
| 791 |
:setting:`CELERY_TASK_RESULT_EXPIRES` setting. |
| 792 |
|
| 793 |
- Improvements to the :pypi:`django-celery` tutorial. |
| 794 |
|
| 795 |
Contributed by Locker537. |
| 796 |
|
| 797 |
- The ``add_consumer`` control command didn't properly persist |
| 798 |
the addition of new queues so that they survived connection failure |
| 799 |
(Issue #1079). |
| 800 |
|
| 801 |
|
| 802 |
3.0.12 |
| 803 |
====== |
| 804 |
:release-date: 2012-11-06 02:00 p.m. UTC |
| 805 |
:release-by: Ask Solem |
| 806 |
|
| 807 |
- Now depends on kombu 2.4.8 |
| 808 |
|
| 809 |
- [Redis] New and improved fair queue cycle algorithm (Kevin McCarthy). |
| 810 |
- [Redis] Now uses a Redis-based mutex when restoring messages. |
| 811 |
- [Redis] Number of messages that can be restored in one interval is no |
| 812 |
longer limited (but can be set using the |
| 813 |
``unacked_restore_limit`` |
| 814 |
:setting:`transport option <BROKER_TRANSPORT_OPTIONS>`). |
| 815 |
- Heartbeat value can be specified in broker URLs (Mher Movsisyan). |
| 816 |
- Fixed problem with msgpack on Python 3 (Jasper Bryant-Greene). |
| 817 |
|
| 818 |
- Now depends on billiard 2.7.3.18 |
| 819 |
|
| 820 |
- Celery can now be used with static analysis tools like PyDev/PyCharm/pylint |
| 821 |
etc. |
| 822 |
|
| 823 |
- Development documentation has moved to Read The Docs. |
| 824 |
|
| 825 |
The new URL is: https://docs.celeryq.dev/en/master |
| 826 |
|
| 827 |
- New :setting:`CELERY_QUEUE_HA_POLICY` setting used to set the default |
| 828 |
HA policy for queues when using RabbitMQ. |
| 829 |
|
| 830 |
- New method ``Task.subtask_from_request`` returns a subtask using the current |
| 831 |
request. |
| 832 |
|
| 833 |
- Results get_many method didn't respect timeout argument. |
| 834 |
|
| 835 |
Fix contributed by Remigiusz Modrzejewski |
| 836 |
|
| 837 |
- generic_init.d scripts now support setting :envvar:`CELERY_CREATE_DIRS` to |
| 838 |
always create log and pid directories (Issue #1045). |
| 839 |
|
| 840 |
This can be set in your :file:`/etc/default/celeryd`. |
| 841 |
|
| 842 |
- Fixed strange kombu import problem on Python 3.2 (Issue #1034). |
| 843 |
|
| 844 |
- Worker: ETA scheduler now uses millisecond precision (Issue #1040). |
| 845 |
|
| 846 |
- The :option:`--config <celery --config>` argument to programs is |
| 847 |
now supported by all loaders. |
| 848 |
|
| 849 |
- The :setting:`CASSANDRA_OPTIONS` setting has now been documented. |
| 850 |
|
| 851 |
Contributed by Jared Biel. |
| 852 |
|
| 853 |
- Task methods (:mod:`celery.contrib.methods`) cannot be used with the old |
| 854 |
task base class, the task decorator in that module now inherits from the new. |
| 855 |
|
| 856 |
- An optimization was too eager and caused some logging messages to never emit. |
| 857 |
|
| 858 |
- ``celery.contrib.batches`` now works again. |
| 859 |
|
| 860 |
- Fixed missing white-space in ``bdist_rpm`` requirements (Issue #1046). |
| 861 |
|
| 862 |
- Event state's ``tasks_by_name`` applied limit before filtering by name. |
| 863 |
|
| 864 |
Fix contributed by Alexander A. Sosnovskiy. |
| 865 |
|
| 866 |
.. _version-3.0.11: |
| 867 |
|
| 868 |
3.0.11 |
| 869 |
====== |
| 870 |
:release-date: 2012-09-26 04:00 p.m. UTC |
| 871 |
:release-by: Ask Solem |
| 872 |
|
| 873 |
- [security:low] generic-init.d scripts changed permissions of /var/log & /var/run |
| 874 |
|
| 875 |
In the daemonization tutorial the recommended directories were as follows: |
| 876 |
|
| 877 |
.. code-block:: bash |
| 878 |
|
| 879 |
CELERYD_LOG_FILE="/var/log/celery/%n.log" |
| 880 |
CELERYD_PID_FILE="/var/run/celery/%n.pid" |
| 881 |
|
| 882 |
But in the scripts themselves the default files were ``/var/log/celery%n.log`` |
| 883 |
and ``/var/run/celery%n.pid``, so if the user didn't change the location |
| 884 |
by configuration, the directories ``/var/log`` and ``/var/run`` would be |
| 885 |
created - and worse have their permissions and owners changed. |
| 886 |
|
| 887 |
This change means that: |
| 888 |
|
| 889 |
- Default pid file is ``/var/run/celery/%n.pid`` |
| 890 |
- Default log file is ``/var/log/celery/%n.log`` |
| 891 |
|
| 892 |
- The directories are only created and have their permissions |
| 893 |
changed if *no custom locations are set*. |
| 894 |
|
| 895 |
Users can force paths to be created by calling the ``create-paths`` |
| 896 |
sub-command: |
| 897 |
|
| 898 |
.. code-block:: console |
| 899 |
|
| 900 |
$ sudo /etc/init.d/celeryd create-paths |
| 901 |
|
| 902 |
.. admonition:: Upgrading Celery won't update init-scripts |
| 903 |
|
| 904 |
To update the init-scripts you have to re-download |
| 905 |
the files from source control and update them manually. |
| 906 |
You can find the init-scripts for version 3.0.x at: |
| 907 |
|
| 908 |
https://github.com/celery/celery/tree/3.0/extra/generic-init.d |
| 909 |
|
| 910 |
- Now depends on billiard 2.7.3.17 |
| 911 |
|
| 912 |
- Fixes request stack protection when app is initialized more than |
| 913 |
once (Issue #1003). |
| 914 |
|
| 915 |
- ETA tasks now properly works when system timezone isn't same |
| 916 |
as the configured timezone (Issue #1004). |
| 917 |
|
| 918 |
- Terminating a task now works if the task has been sent to the |
| 919 |
pool but not yet acknowledged by a pool process (Issue #1007). |
| 920 |
|
| 921 |
Fix contributed by Alexey Zatelepin |
| 922 |
|
| 923 |
- Terminating a task now properly updates the state of the task to revoked, |
| 924 |
and sends a ``task-revoked`` event. |
| 925 |
|
| 926 |
- Generic worker init-script now waits for workers to shutdown by default. |
| 927 |
|
| 928 |
- Multi: No longer parses --app option (Issue #1008). |
| 929 |
|
| 930 |
- Multi: ``stop_verify`` command renamed to ``stopwait``. |
| 931 |
|
| 932 |
- Daemonization: Now delays trying to create pidfile/logfile until after |
| 933 |
the working directory has been changed into. |
| 934 |
|
| 935 |
- :program:`celery worker` and :program:`celery beat` commands now respects |
| 936 |
the :option:`--no-color <celery --no-color>` option (Issue #999). |
| 937 |
|
| 938 |
- Fixed typos in eventlet examples (Issue #1000) |
| 939 |
|
| 940 |
Fix contributed by Bryan Bishop. |
| 941 |
Congratulations on opening bug #1000! |
| 942 |
|
| 943 |
- Tasks that raise :exc:`~celery.exceptions.Ignore` are now acknowledged. |
| 944 |
|
| 945 |
- Beat: Now shows the name of the entry in ``sending due task`` logs. |
| 946 |
|
| 947 |
.. _version-3.0.10: |
| 948 |
|
| 949 |
3.0.10 |
| 950 |
====== |
| 951 |
:release-date: 2012-09-20 05:30 p.m. BST |
| 952 |
:release-by: Ask Solem |
| 953 |
|
| 954 |
- Now depends on kombu 2.4.7 |
| 955 |
|
| 956 |
- Now depends on billiard 2.7.3.14 |
| 957 |
|
| 958 |
- Fixes crash at start-up when using Django and pre-1.4 projects |
| 959 |
(``setup_environ``). |
| 960 |
|
| 961 |
- Hard time limits now sends the KILL signal shortly after TERM, |
| 962 |
to terminate processes that have signal handlers blocked by C extensions. |
| 963 |
|
| 964 |
- Billiard now installs even if the C extension cannot be built. |
| 965 |
|
| 966 |
It's still recommended to build the C extension if you're using |
| 967 |
a transport other than RabbitMQ/Redis (or use forced execv for some |
| 968 |
other reason). |
| 969 |
|
| 970 |
- Pool now sets a ``current_process().index`` attribute that can be used to create |
| 971 |
as many log files as there are processes in the pool. |
| 972 |
|
| 973 |
- Canvas: chord/group/chain no longer modifies the state when called |
| 974 |
|
| 975 |
Previously calling a chord/group/chain would modify the ids of subtasks |
| 976 |
so that: |
| 977 |
|
| 978 |
.. code-block:: pycon |
| 979 |
|
| 980 |
>>> c = chord([add.s(2, 2), add.s(4, 4)], xsum.s()) |
| 981 |
>>> c() |
| 982 |
>>> c() <-- call again |
| 983 |
|
| 984 |
at the second time the ids for the tasks would be the same as in the |
| 985 |
previous invocation. This is now fixed, so that calling a subtask |
| 986 |
won't mutate any options. |
| 987 |
|
| 988 |
- Canvas: Chaining a chord to another task now works (Issue #965). |
| 989 |
|
| 990 |
- Worker: Fixed a bug where the request stack could be corrupted if |
| 991 |
relative imports are used. |
| 992 |
|
| 993 |
Problem usually manifested itself as an exception while trying to |
| 994 |
send a failed task result (``NoneType does not have id attribute``). |
| 995 |
|
| 996 |
Fix contributed by Sam Cooke. |
| 997 |
|
| 998 |
- Tasks can now raise :exc:`~celery.exceptions.Ignore` to skip updating states |
| 999 |
or events after return. |
| 1000 |
|
| 1001 |
Example: |
| 1002 |
|
| 1003 |
.. code-block:: python |
| 1004 |
|
| 1005 |
from celery.exceptions import Ignore |
| 1006 |
|
| 1007 |
@task |
| 1008 |
def custom_revokes(): |
| 1009 |
if redis.sismember('tasks.revoked', custom_revokes.request.id): |
| 1010 |
raise Ignore() |
| 1011 |
|
| 1012 |
- The worker now makes sure the request/task stacks aren't modified |
| 1013 |
by the initial ``Task.__call__``. |
| 1014 |
|
| 1015 |
This would previously be a problem if a custom task class defined |
| 1016 |
``__call__`` and also called ``super()``. |
| 1017 |
|
| 1018 |
- Because of problems the fast local optimization has been disabled, |
| 1019 |
and can only be enabled by setting the :envvar:`USE_FAST_LOCALS` attribute. |
| 1020 |
|
| 1021 |
- Worker: Now sets a default socket timeout of 5 seconds at shutdown |
| 1022 |
so that broken socket reads don't hinder proper shutdown (Issue #975). |
| 1023 |
|
| 1024 |
- More fixes related to late eventlet/gevent patching. |
| 1025 |
|
| 1026 |
- Documentation for settings out of sync with reality: |
| 1027 |
|
| 1028 |
- :setting:`CELERY_TASK_PUBLISH_RETRY` |
| 1029 |
|
| 1030 |
Documented as disabled by default, but it was enabled by default |
| 1031 |
since 2.5 as stated by the 2.5 changelog. |
| 1032 |
|
| 1033 |
- :setting:`CELERY_TASK_PUBLISH_RETRY_POLICY` |
| 1034 |
|
| 1035 |
The default max_retries had been set to 100, but documented as being |
| 1036 |
3, and the interval_max was set to 1 but documented as 0.2. |
| 1037 |
The default setting are now set to 3 and 0.2 as it was originally |
| 1038 |
documented. |
| 1039 |
|
| 1040 |
Fix contributed by Matt Long. |
| 1041 |
|
| 1042 |
- Worker: Log messages when connection established and lost have been improved. |
| 1043 |
|
| 1044 |
- The repr of a Crontab schedule value of '0' should be '*' (Issue #972). |
| 1045 |
|
| 1046 |
- Revoked tasks are now removed from reserved/active state in the worker |
| 1047 |
(Issue #969) |
| 1048 |
|
| 1049 |
Fix contributed by Alexey Zatelepin. |
| 1050 |
|
| 1051 |
- gevent: Now supports hard time limits using ``gevent.Timeout``. |
| 1052 |
|
| 1053 |
- Documentation: Links to init-scripts now point to the 3.0 branch instead |
| 1054 |
of the development branch (master). |
| 1055 |
|
| 1056 |
- Documentation: Fixed typo in signals user guide (Issue #986). |
| 1057 |
|
| 1058 |
``instance.app.queues`` -> ``instance.app.amqp.queues``. |
| 1059 |
|
| 1060 |
- Eventlet/gevent: The worker didn't properly set the custom app |
| 1061 |
for new greenlets. |
| 1062 |
|
| 1063 |
- Eventlet/gevent: Fixed a bug where the worker could not recover |
| 1064 |
from connection loss (Issue #959). |
| 1065 |
|
| 1066 |
Also, because of a suspected bug in gevent the |
| 1067 |
:setting:`BROKER_CONNECTION_TIMEOUT` setting has been disabled |
| 1068 |
when using gevent |
| 1069 |
|
| 1070 |
3.0.9 |
| 1071 |
===== |
| 1072 |
:release-date: 2012-08-31 06:00 p.m. BST |
| 1073 |
:release-by: Ask Solem |
| 1074 |
|
| 1075 |
- Important note for users of Django and the database scheduler! |
| 1076 |
|
| 1077 |
Recently a timezone issue has been fixed for periodic tasks, |
| 1078 |
but erroneous timezones could have already been stored in the |
| 1079 |
database, so for the fix to work you need to reset |
| 1080 |
the ``last_run_at`` fields. |
| 1081 |
|
| 1082 |
You can do this by executing the following command: |
| 1083 |
|
| 1084 |
.. code-block:: console |
| 1085 |
|
| 1086 |
$ python manage.py shell |
| 1087 |
>>> from djcelery.models import PeriodicTask |
| 1088 |
>>> PeriodicTask.objects.update(last_run_at=None) |
| 1089 |
|
| 1090 |
You also have to do this if you change the timezone or |
| 1091 |
:setting:`CELERY_ENABLE_UTC` setting. |
| 1092 |
|
| 1093 |
- Note about the :setting:`CELERY_ENABLE_UTC` setting. |
| 1094 |
|
| 1095 |
If you previously disabled this just to force periodic tasks to work with |
| 1096 |
your timezone, then you're now *encouraged to re-enable it*. |
| 1097 |
|
| 1098 |
- Now depends on Kombu 2.4.5 which fixes PyPy + Jython installation. |
| 1099 |
|
| 1100 |
- Fixed bug with timezones when :setting:`CELERY_ENABLE_UTC` is disabled |
| 1101 |
(Issue #952). |
| 1102 |
|
| 1103 |
- Fixed a typo in the ``celerybeat`` upgrade mechanism (Issue #951). |
| 1104 |
|
| 1105 |
- Make sure the `exc_info` argument to logging is resolved (Issue #899). |
| 1106 |
|
| 1107 |
- Fixed problem with Python 3.2 and thread join timeout overflow (Issue #796). |
| 1108 |
|
| 1109 |
- A test case was occasionally broken for Python 2.5. |
| 1110 |
|
| 1111 |
- Unit test suite now passes for PyPy 1.9. |
| 1112 |
|
| 1113 |
- App instances now supports the :keyword:`with` statement. |
| 1114 |
|
| 1115 |
This calls the new :meth:`@close` method at exit, which |
| 1116 |
cleans up after the app like closing pool connections. |
| 1117 |
|
| 1118 |
Note that this is only necessary when dynamically creating apps, |
| 1119 |
for example "temporary" apps. |
| 1120 |
|
| 1121 |
- Support for piping a subtask to a chain. |
| 1122 |
|
| 1123 |
For example: |
| 1124 |
|
| 1125 |
.. code-block:: python |
| 1126 |
|
| 1127 |
pipe = sometask.s() | othertask.s() |
| 1128 |
new_pipe = mytask.s() | pipe |
| 1129 |
|
| 1130 |
Contributed by Steve Morin. |
| 1131 |
|
| 1132 |
- Fixed problem with group results on non-pickle serializers. |
| 1133 |
|
| 1134 |
Fix contributed by Steeve Morin. |
| 1135 |
|
| 1136 |
.. _version-3.0.8: |
| 1137 |
|
| 1138 |
3.0.8 |
| 1139 |
===== |
| 1140 |
:release-date: 2012-08-29 05:00 p.m. BST |
| 1141 |
:release-by: Ask Solem |
| 1142 |
|
| 1143 |
- Now depends on Kombu 2.4.4 |
| 1144 |
|
| 1145 |
- Fixed problem with :pypi:`amqplib` and receiving larger message payloads |
| 1146 |
(Issue #922). |
| 1147 |
|
| 1148 |
The problem would manifest itself as either the worker hanging, |
| 1149 |
or occasionally a ``Framing error`` exception appearing. |
| 1150 |
|
| 1151 |
Users of the new ``pyamqp://`` transport must upgrade to |
| 1152 |
:pypi:`amqp` 0.9.3. |
| 1153 |
|
| 1154 |
- Beat: Fixed another timezone bug with interval and Crontab schedules |
| 1155 |
(Issue #943). |
| 1156 |
|
| 1157 |
- Beat: The schedule file is now automatically cleared if the timezone |
| 1158 |
is changed. |
| 1159 |
|
| 1160 |
The schedule is also cleared when you upgrade to 3.0.8 from an earlier |
| 1161 |
version, this to register the initial timezone info. |
| 1162 |
|
| 1163 |
- Events: The :event:`worker-heartbeat` event now include processed and active |
| 1164 |
count fields. |
| 1165 |
|
| 1166 |
Contributed by Mher Movsisyan. |
| 1167 |
|
| 1168 |
- Fixed error with error email and new task classes (Issue #931). |
| 1169 |
|
| 1170 |
- ``BaseTask.__call__`` is no longer optimized away if it has been monkey |
| 1171 |
patched. |
| 1172 |
|
| 1173 |
- Fixed shutdown issue when using gevent (Issue #911 & Issue #936). |
| 1174 |
|
| 1175 |
Fix contributed by Thomas Meson. |
| 1176 |
|
| 1177 |
.. _version-3.0.7: |
| 1178 |
|
| 1179 |
3.0.7 |
| 1180 |
===== |
| 1181 |
:release-date: 2012-08-24 05:00 p.m. BST |
| 1182 |
:release-by: Ask Solem |
| 1183 |
|
| 1184 |
- Fixes several problems with periodic tasks and timezones (Issue #937). |
| 1185 |
|
| 1186 |
- Now depends on kombu 2.4.2 |
| 1187 |
|
| 1188 |
- Redis: Fixes a race condition crash |
| 1189 |
|
| 1190 |
- Fixes an infinite loop that could happen when retrying establishing |
| 1191 |
the broker connection. |
| 1192 |
|
| 1193 |
- Daemons now redirect standard file descriptors to :file:`/dev/null` |
| 1194 |
|
| 1195 |
Though by default the standard outs are also redirected |
| 1196 |
to the logger instead, but you can disable this by changing |
| 1197 |
the :setting:`CELERY_REDIRECT_STDOUTS` setting. |
| 1198 |
|
| 1199 |
- Fixes possible problems when eventlet/gevent is patched too late. |
| 1200 |
|
| 1201 |
- ``LoggingProxy`` no longer defines ``fileno()`` (Issue #928). |
| 1202 |
|
| 1203 |
- Results are now ignored for the chord unlock task. |
| 1204 |
|
| 1205 |
Fix contributed by Steeve Morin. |
| 1206 |
|
| 1207 |
- Cassandra backend now works if result expiry is disabled. |
| 1208 |
|
| 1209 |
Fix contributed by Steeve Morin. |
| 1210 |
|
| 1211 |
- The traceback object is now passed to signal handlers instead |
| 1212 |
of the string representation. |
| 1213 |
|
| 1214 |
Fix contributed by Adam DePue. |
| 1215 |
|
| 1216 |
- Celery command: Extensions are now sorted by name. |
| 1217 |
|
| 1218 |
- A regression caused the :event:`task-failed` event to be sent |
| 1219 |
with the exception object instead of its string representation. |
| 1220 |
|
| 1221 |
- The worker daemon would try to create the pid file before daemonizing |
| 1222 |
to catch errors, but this file wasn't immediately released (Issue #923). |
| 1223 |
|
| 1224 |
- Fixes Jython compatibility. |
| 1225 |
|
| 1226 |
- ``billiard.forking_enable`` was called by all pools not just the |
| 1227 |
processes pool, which would result in a useless warning if the billiard |
| 1228 |
C extensions weren't installed. |
| 1229 |
|
| 1230 |
.. _version-3.0.6: |
| 1231 |
|
| 1232 |
3.0.6 |
| 1233 |
===== |
| 1234 |
:release-date: 2012-08-17 11:00 p.mp.m. Ask Solem |
| 1235 |
|
| 1236 |
- Now depends on kombu 2.4.0 |
| 1237 |
|
| 1238 |
- Now depends on billiard 2.7.3.12 |
| 1239 |
|
| 1240 |
- Redis: Celery now tries to restore messages whenever there are no messages |
| 1241 |
in the queue. |
| 1242 |
|
| 1243 |
- Crontab schedules now properly respects :setting:`CELERY_TIMEZONE` setting. |
| 1244 |
|
| 1245 |
It's important to note that Crontab schedules uses UTC time by default |
| 1246 |
unless this setting is set. |
| 1247 |
|
| 1248 |
Issue #904 and :pypi:`django-celery` #150. |
| 1249 |
|
| 1250 |
- ``billiard.enable_forking`` is now only set by the processes pool. |
| 1251 |
|
| 1252 |
- The transport is now properly shown by :program:`celery report` |
| 1253 |
(Issue #913). |
| 1254 |
|
| 1255 |
- The `--app` argument now works if the last part is a module name |
| 1256 |
(Issue #921). |
| 1257 |
|
| 1258 |
- Fixed problem with unpickleable exceptions (billiard #12). |
| 1259 |
|
| 1260 |
- Adds ``task_name`` attribute to ``EagerResult`` which is always |
| 1261 |
:const:`None` (Issue #907). |
| 1262 |
|
| 1263 |
- Old Task class in :mod:`celery.task` no longer accepts magic kwargs by |
| 1264 |
default (Issue #918). |
| 1265 |
|
| 1266 |
A regression long ago disabled magic kwargs for these, and since |
| 1267 |
no one has complained about it we don't have any incentive to fix it now. |
| 1268 |
|
| 1269 |
- The ``inspect reserved`` control command didn't work properly. |
| 1270 |
|
| 1271 |
- Should now play better with tools for static analysis by explicitly |
| 1272 |
specifying dynamically created attributes in the :mod:`celery` and |
| 1273 |
:mod:`celery.task` modules. |
| 1274 |
|
| 1275 |
- Terminating a task now results in |
| 1276 |
:exc:`~celery.exceptions.RevokedTaskError` instead of a ``WorkerLostError``. |
| 1277 |
|
| 1278 |
- ``AsyncResult.revoke`` now accepts ``terminate`` and ``signal`` arguments. |
| 1279 |
|
| 1280 |
- The :event:`task-revoked` event now includes new fields: ``terminated``, |
| 1281 |
``signum``, and ``expired``. |
| 1282 |
|
| 1283 |
- The argument to :class:`~celery.exceptions.TaskRevokedError` is now one |
| 1284 |
of the reasons ``revoked``, ``expired`` or ``terminated``. |
| 1285 |
|
| 1286 |
- Old Task class does no longer use :class:`classmethod` for ``push_request`` |
| 1287 |
and ``pop_request`` (Issue #912). |
| 1288 |
|
| 1289 |
- ``GroupResult`` now supports the ``children`` attribute (Issue #916). |
| 1290 |
|
| 1291 |
- ``AsyncResult.collect`` now respects the ``intermediate`` argument |
| 1292 |
(Issue #917). |
| 1293 |
|
| 1294 |
- Fixes example task in documentation (Issue #902). |
| 1295 |
|
| 1296 |
- Eventlet fixed so that the environment is patched as soon as possible. |
| 1297 |
|
| 1298 |
- eventlet: Now warns if Celery related modules that depends on threads |
| 1299 |
are imported before eventlet is patched. |
| 1300 |
|
| 1301 |
- Improved event and camera examples in the monitoring guide. |
| 1302 |
|
| 1303 |
- Disables celery command setuptools entry-points if the command can't be |
| 1304 |
loaded. |
| 1305 |
|
| 1306 |
- Fixed broken ``dump_request`` example in the tasks guide. |
| 1307 |
|
| 1308 |
|
| 1309 |
|
| 1310 |
.. _version-3.0.5: |
| 1311 |
|
| 1312 |
3.0.5 |
| 1313 |
===== |
| 1314 |
:release-date: 2012-08-01 04:00 p.m. BST |
| 1315 |
:release-by: Ask Solem |
| 1316 |
|
| 1317 |
- Now depends on kombu 2.3.1 + billiard 2.7.3.11 |
| 1318 |
|
| 1319 |
- Fixed a bug with the -B option (``cannot pickle thread.lock objects``) |
| 1320 |
(Issue #894 + Issue #892, + :pypi:`django-celery` #154). |
| 1321 |
|
| 1322 |
- The :control:`restart_pool` control command now requires the |
| 1323 |
:setting:`CELERYD_POOL_RESTARTS` setting to be enabled |
| 1324 |
|
| 1325 |
This change was necessary as the multiprocessing event that the restart |
| 1326 |
command depends on is responsible for creating many semaphores/file |
| 1327 |
descriptors, resulting in problems in some environments. |
| 1328 |
|
| 1329 |
- ``chain.apply`` now passes args to the first task (Issue #889). |
| 1330 |
|
| 1331 |
- Documented previously secret options to the :pypi:`django-celery` monitor |
| 1332 |
in the monitoring user guide (Issue #396). |
| 1333 |
|
| 1334 |
- Old changelog are now organized in separate documents for each series, |
| 1335 |
see :ref:`history`. |
| 1336 |
|
| 1337 |
.. _version-3.0.4: |
| 1338 |
|
| 1339 |
3.0.4 |
| 1340 |
===== |
| 1341 |
:release-date: 2012-07-26 07:00 p.m. BST |
| 1342 |
:release-by: Ask Solem |
| 1343 |
|
| 1344 |
- Now depends on Kombu 2.3 |
| 1345 |
|
| 1346 |
- New experimental standalone Celery monitor: Flower |
| 1347 |
|
| 1348 |
See :ref:`monitoring-flower` to read more about it! |
| 1349 |
|
| 1350 |
Contributed by Mher Movsisyan. |
| 1351 |
|
| 1352 |
- Now supports AMQP heartbeats if using the new ``pyamqp://`` transport. |
| 1353 |
|
| 1354 |
- The :pypi:`amqp` transport requires the :pypi:`amqp` library to be installed: |
| 1355 |
|
| 1356 |
.. code-block:: console |
| 1357 |
|
| 1358 |
$ pip install amqp |
| 1359 |
|
| 1360 |
- Then you need to set the transport URL prefix to ``pyamqp://``. |
| 1361 |
|
| 1362 |
- The default heartbeat value is 10 seconds, but this can be changed using |
| 1363 |
the :setting:`BROKER_HEARTBEAT` setting:: |
| 1364 |
|
| 1365 |
BROKER_HEARTBEAT = 5.0 |
| 1366 |
|
| 1367 |
- If the broker heartbeat is set to 10 seconds, the heartbeats will be |
| 1368 |
monitored every 5 seconds (double the heartbeat rate). |
| 1369 |
|
| 1370 |
See the :ref:`Kombu 2.3 changelog <kombu:version-2.3.0>` for more information. |
| 1371 |
|
| 1372 |
- Now supports RabbitMQ Consumer Cancel Notifications, using the ``pyamqp://`` |
| 1373 |
transport. |
| 1374 |
|
| 1375 |
This is essential when running RabbitMQ in a cluster. |
| 1376 |
|
| 1377 |
See the :ref:`Kombu 2.3 changelog <kombu:version-2.3.0>` for more information. |
| 1378 |
|
| 1379 |
- Delivery info is no longer passed directly through. |
| 1380 |
|
| 1381 |
It was discovered that the SQS transport adds objects that can't |
| 1382 |
be pickled to the delivery info mapping, so we had to go back |
| 1383 |
to using the white-list again. |
| 1384 |
|
| 1385 |
Fixing this bug also means that the SQS transport is now working again. |
| 1386 |
|
| 1387 |
- The semaphore wasn't properly released when a task was revoked (Issue #877). |
| 1388 |
|
| 1389 |
This could lead to tasks being swallowed and not released until a worker |
| 1390 |
restart. |
| 1391 |
|
| 1392 |
Thanks to Hynek Schlawack for debugging the issue. |
| 1393 |
|
| 1394 |
- Retrying a task now also forwards any linked tasks. |
| 1395 |
|
| 1396 |
This means that if a task is part of a chain (or linked in some other |
| 1397 |
way) and that even if the task is retried, then the next task in the chain |
| 1398 |
will be executed when the retry succeeds. |
| 1399 |
|
| 1400 |
- Chords: Now supports setting the interval and other keyword arguments |
| 1401 |
to the chord unlock task. |
| 1402 |
|
| 1403 |
- The interval can now be set as part of the chord subtasks kwargs:: |
| 1404 |
|
| 1405 |
chord(header)(body, interval=10.0) |
| 1406 |
|
| 1407 |
- In addition the chord unlock task now honors the Task.default_retry_delay |
| 1408 |
option, used when none is specified, which also means that the default |
| 1409 |
interval can also be changed using annotations: |
| 1410 |
|
| 1411 |
.. code-block:: python |
| 1412 |
|
| 1413 |
CELERY_ANNOTATIONS = { |
| 1414 |
'celery.chord_unlock': { |
| 1415 |
'default_retry_delay': 10.0, |
| 1416 |
} |
| 1417 |
} |
| 1418 |
|
| 1419 |
- New :meth:`@add_defaults` method can add new default configuration |
| 1420 |
dictionaries to the applications configuration. |
| 1421 |
|
| 1422 |
For example:: |
| 1423 |
|
| 1424 |
config = {'FOO': 10} |
| 1425 |
|
| 1426 |
app.add_defaults(config) |
| 1427 |
|
| 1428 |
is the same as ``app.conf.update(config)`` except that data won't be |
| 1429 |
copied, and that it won't be pickled when the worker spawns child |
| 1430 |
processes. |
| 1431 |
|
| 1432 |
In addition the method accepts a callable:: |
| 1433 |
|
| 1434 |
def initialize_config(): |
| 1435 |
# insert heavy stuff that can't be done at import time here. |
| 1436 |
|
| 1437 |
app.add_defaults(initialize_config) |
| 1438 |
|
| 1439 |
which means the same as the above except that it won't happen |
| 1440 |
until the Celery configuration is actually used. |
| 1441 |
|
| 1442 |
As an example, Celery can lazily use the configuration of a Flask app:: |
| 1443 |
|
| 1444 |
flask_app = Flask() |
| 1445 |
app = Celery() |
| 1446 |
app.add_defaults(lambda: flask_app.config) |
| 1447 |
|
| 1448 |
- Revoked tasks weren't marked as revoked in the result backend (Issue #871). |
| 1449 |
|
| 1450 |
Fix contributed by Hynek Schlawack. |
| 1451 |
|
| 1452 |
- Event-loop now properly handles the case when the :manpage:`epoll` poller |
| 1453 |
object has been closed (Issue #882). |
| 1454 |
|
| 1455 |
- Fixed syntax error in ``funtests/test_leak.py`` |
| 1456 |
|
| 1457 |
Fix contributed by Catalin Iacob. |
| 1458 |
|
| 1459 |
- group/chunks: Now accepts empty task list (Issue #873). |
| 1460 |
|
| 1461 |
- New method names: |
| 1462 |
|
| 1463 |
- ``Celery.default_connection()`` ➠ :meth:`~@connection_or_acquire`. |
| 1464 |
- ``Celery.default_producer()`` ➠ :meth:`~@producer_or_acquire`. |
| 1465 |
|
| 1466 |
The old names still work for backward compatibility. |
| 1467 |
|
| 1468 |
|
| 1469 |
.. _version-3.0.3: |
| 1470 |
|
| 1471 |
3.0.3 |
| 1472 |
===== |
| 1473 |
:release-date: 2012-07-20 09:17 p.m. BST |
| 1474 |
:release-by: Ask Solem |
| 1475 |
|
| 1476 |
- :pypi:`amqplib` passes the channel object as part of the delivery_info |
| 1477 |
and it's not pickleable, so we now remove it. |
| 1478 |
|
| 1479 |
.. _version-3.0.2: |
| 1480 |
|
| 1481 |
3.0.2 |
| 1482 |
===== |
| 1483 |
:release-date: 2012-07-20 04:00 p.m. BST |
| 1484 |
:release-by: Ask Solem |
| 1485 |
|
| 1486 |
- A bug caused the following task options to not take defaults from the |
| 1487 |
configuration (Issue #867 + Issue #858) |
| 1488 |
|
| 1489 |
The following settings were affected: |
| 1490 |
|
| 1491 |
- :setting:`CELERY_IGNORE_RESULT` |
| 1492 |
- :setting:`CELERYD_SEND_TASK_ERROR_EMAILS` |
| 1493 |
- :setting:`CELERY_TRACK_STARTED` |
| 1494 |
- :setting:`CElERY_STORE_ERRORS_EVEN_IF_IGNORED` |
| 1495 |
|
| 1496 |
Fix contributed by John Watson. |
| 1497 |
|
| 1498 |
- Task Request: ``delivery_info`` is now passed through as-is (Issue #807). |
| 1499 |
|
| 1500 |
- The ETA argument now supports datetime's with a timezone set (Issue #855). |
| 1501 |
|
| 1502 |
- The worker's banner displayed the autoscale settings in the wrong order |
| 1503 |
(Issue #859). |
| 1504 |
|
| 1505 |
- Extension commands are now loaded after concurrency is set up |
| 1506 |
so that they don't interfere with things like eventlet patching. |
| 1507 |
|
| 1508 |
- Fixed bug in the threaded pool (Issue #863) |
| 1509 |
|
| 1510 |
- The task failure handler mixed up the fields in :func:`sys.exc_info`. |
| 1511 |
|
| 1512 |
Fix contributed by Rinat Shigapov. |
| 1513 |
|
| 1514 |
- Fixed typos and wording in the docs. |
| 1515 |
|
| 1516 |
Fix contributed by Paul McMillan |
| 1517 |
|
| 1518 |
- New setting: :setting:`CELERY_WORKER_DIRECT` |
| 1519 |
|
| 1520 |
If enabled each worker will consume from their own dedicated queue |
| 1521 |
which can be used to route tasks to specific workers. |
| 1522 |
|
| 1523 |
- Fixed several edge case bugs in the add consumer remote control command. |
| 1524 |
|
| 1525 |
- :mod:`~celery.contrib.migrate`: Can now filter and move tasks to specific |
| 1526 |
workers if :setting:`CELERY_WORKER_DIRECT` is enabled. |
| 1527 |
|
| 1528 |
Among other improvements, the following functions have been added: |
| 1529 |
|
| 1530 |
* ``move_direct(filterfun, **opts)`` |
| 1531 |
* ``move_direct_by_id(task_id, worker_hostname, **opts)`` |
| 1532 |
* ``move_direct_by_idmap({task_id: worker_hostname, ...}, **opts)`` |
| 1533 |
* ``move_direct_by_taskmap({task_name: worker_hostname, ...}, **opts)`` |
| 1534 |
|
| 1535 |
- :meth:`~celery.Celery.default_connection` now accepts a pool argument that |
| 1536 |
if set to false causes a new connection to be created instead of acquiring |
| 1537 |
one from the pool. |
| 1538 |
|
| 1539 |
- New signal: :signal:`celeryd_after_setup`. |
| 1540 |
|
| 1541 |
- Default loader now keeps lowercase attributes from the configuration module. |
| 1542 |
|
| 1543 |
.. _version-3.0.1: |
| 1544 |
|
| 1545 |
3.0.1 |
| 1546 |
===== |
| 1547 |
:release-date: 2012-07-10 06:00 p.m. BST |
| 1548 |
:release-by: Ask Solem |
| 1549 |
|
| 1550 |
- Now depends on kombu 2.2.5 |
| 1551 |
|
| 1552 |
- inspect now supports limit argument:: |
| 1553 |
|
| 1554 |
myapp.control.inspect(limit=1).ping() |
| 1555 |
|
| 1556 |
- Beat: now works with timezone aware datetime's. |
| 1557 |
|
| 1558 |
- Task classes inheriting ``from celery import Task`` |
| 1559 |
mistakenly enabled ``accept_magic_kwargs``. |
| 1560 |
|
| 1561 |
- Fixed bug in ``inspect scheduled`` (Issue #829). |
| 1562 |
|
| 1563 |
- Beat: Now resets the schedule to upgrade to UTC. |
| 1564 |
|
| 1565 |
- The :program:`celery worker` command now works with eventlet/gevent. |
| 1566 |
|
| 1567 |
Previously it wouldn't patch the environment early enough. |
| 1568 |
|
| 1569 |
- The :program:`celery` command now supports extension commands |
| 1570 |
using setuptools entry-points. |
| 1571 |
|
| 1572 |
Libraries can add additional commands to the :program:`celery` |
| 1573 |
command by adding an entry-point like:: |
| 1574 |
|
| 1575 |
setup( |
| 1576 |
entry_points=[ |
| 1577 |
'celery.commands': [ |
| 1578 |
'foo = my.module:Command', |
| 1579 |
], |
| 1580 |
], |
| 1581 |
...) |
| 1582 |
|
| 1583 |
The command must then support the interface of |
| 1584 |
:class:`celery.bin.base.Command`. |
| 1585 |
|
| 1586 |
- contrib.migrate: New utilities to move tasks from one queue to another. |
| 1587 |
|
| 1588 |
- :func:`~celery.contrib.migrate.move_tasks` |
| 1589 |
- :func:`~celery.contrib.migrate.move_task_by_id` |
| 1590 |
|
| 1591 |
- The :event:`task-sent` event now contains ``exchange`` and ``routing_key`` |
| 1592 |
fields. |
| 1593 |
|
| 1594 |
- Fixes bug with installing on Python 3. |
| 1595 |
|
| 1596 |
Fix contributed by Jed Smith. |
| 1597 |
|
| 1598 |
.. _version-3.0.0: |
| 1599 |
|
| 1600 |
3.0.0 (Chiastic Slide) |
| 1601 |
====================== |
| 1602 |
:release-date: 2012-07-07 01:30 p.m. BST |
| 1603 |
:release-by: Ask Solem |
| 1604 |
|
| 1605 |
See :ref:`whatsnew-3.0`. |