Changelog 32 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064
  1. .. _changelog:
  2. ================
  3. Change history
  4. ================
  5. .. contents::
  6. :local:
  7. If you're looking for versions prior to 3.0.x you should go to :ref:`history`.
  8. .. _version-3.0.14:
  9. 3.0.14
  10. ======
  11. :release-date: 2013-02-08 05:00:00 P.M UTC
  12. - Now depends on Kombu 2.5.6
  13. - Now depends on billiard 2.7.3.20
  14. - ``execv`` is now disabled by default.
  15. It was causing too many problems for users, you can still enable
  16. it using the :setting:`CELERYD_FORCE_EXECV` setting.
  17. execv was only enabled when transports other than amqp/redis was used,
  18. and it's there to prevent deadlocks caused by mutexes not being released
  19. before the process forks. Sadly it also changes the environment
  20. introducing many corner case bugs that is hard to fix without adding
  21. horrible hacks. Deadlock issues are reported far less often than the
  22. bugs that execv are causing, so we now disable it by default.
  23. Work is in motion to create non-blocking versions of these transports
  24. so that execv is not necessary (which is the situation with the amqp
  25. and redis broker transports)
  26. - Chord exception behavior defined (Issue #1172).
  27. From Celery 3.1 the chord callback will change state to FAILURE
  28. when a task part of a chord raises an exception.
  29. It was never documented what happens in this case,
  30. and the actual behavior was very unsatisfactory, indeed
  31. it will just forward the exception value to the chord callback.
  32. For backward compatibility reasons we do not change to the new
  33. behavior in a bugfix release, even if the current behavior was
  34. never documented. Instead you can enable the
  35. :setting:`CELERY_CHORD_PROPAGATES` setting to get the new behavior
  36. that will be default from Celery 3.1.
  37. See more at :ref:`chord-errors`.
  38. - worker: Fixes bug with ignored and retried tasks.
  39. The ``on_chord_part_return`` and ``Task.after_return`` callbacks,
  40. nor the ``task_postrun`` signal should be called when the task was
  41. retried/ignored.
  42. Fix contributed by Vlad.
  43. - ``GroupResult.join_native`` now respects the ``propagate`` argument.
  44. - ``subtask.id`` added as an alias to ``subtask['options'].id``
  45. .. code-block:: python
  46. >>> s = add.s(2, 2)
  47. >>> s.id = 'my-id'
  48. >>> s['options']
  49. {'task_id': 'my-id'}
  50. >>> s.id
  51. 'my-id'
  52. - worker: Fixed error `Could not start worker processes` occurring
  53. when restarting after connection failure (Issue #1118).
  54. - Adds new signal :signal:`task-retried` (Issue #1169).
  55. - `celery events --dumper` now handles connection loss.
  56. - Will now retry sending the task-sent event in case of connection failure.
  57. - amqp backend: Now uses ``Message.requeue`` instead of republishing
  58. the message after poll.
  59. - New :setting:`BROKER_HEARTBEAT_CHECKRATE` setting introduced to modify the
  60. rate at which broker connection heartbeats are monitored.
  61. The default value was also changed from 3.0 to 2.0.
  62. - :class:`celery.events.state.State` is now pickleable.
  63. Fix contributed by Mher Movsisyan.
  64. - :class:`celery.datastructures.LRUCache` is now pickleable.
  65. Fix contributed by Mher Movsisyan.
  66. - The stats broadcast command now includes the workers pid.
  67. Contributed by Mher Movsisyan.
  68. - New ``conf`` remote control command to get a workers current configuration.
  69. Contributed by Mher Movsisyan.
  70. - Adds the ability to modify the chord unlock task's countdown
  71. argument (Issue #1146).
  72. Contributed by Jun Sakai
  73. - beat: The scheduler now uses the `now()`` method of the schedule,
  74. so that schedules can provide a custom way to get the current date and time.
  75. Contributed by Raphaël Slinckx
  76. - Fixed pickling of configuration modules on Windows or when execv is used
  77. (Issue #1126).
  78. - Multiprocessing logger is now configured with loglevel ``ERROR``
  79. by default.
  80. Since 3.0 the multiprocessing loggers were disabled by default
  81. (only configured when the :envvar:`MP_LOG` environment variable was set).
  82. .. _version-3.0.13:
  83. 3.0.13
  84. ======
  85. :release-date: 2013-01-07 04:00:00 P.M UTC
  86. - Now depends on Kombu 2.5
  87. - py-amqp has replaced amqplib as the default transport,
  88. gaining support for AMQP 0.9, and the RabbitMQ extensions
  89. including Consumer Cancel Notifications and heartbeats.
  90. - support for multiple connection URLs for failover.
  91. - Read more in the `Kombu 2.5 changelog`_.
  92. .. _`Kombu 2.5 changelog`:
  93. http://kombu.readthedocs.org/en/latest/changelog.html#version-2-5-0
  94. - Now depends on billiard 2.7.3.19
  95. - Fixed a deadlock issue that could occur when the producer pool
  96. inherited the connection pool instance of the parent process.
  97. - The :option:`--loader` option now works again (Issue #1066).
  98. - :program:`celery` umbrella command: All subcommands now supports
  99. the :option:`--workdir` option (Issue #1063).
  100. - Groups included in chains now give GroupResults (Issue #1057)
  101. Previously it would incorrectly add a regular result instead of a group
  102. result, but now this works:
  103. .. code-block:: python
  104. # [4 + 4, 4 + 8, 16 + 8]
  105. >>> res = (add.s(2, 2) | group(add.s(4), add.s(8), add.s(16)))()
  106. >>> res
  107. <GroupResult: a0acf905-c704-499e-b03a-8d445e6398f7 [
  108. 4346501c-cb99-4ad8-8577-12256c7a22b1,
  109. b12ead10-a622-4d44-86e9-3193a778f345,
  110. 26c7a420-11f3-4b33-8fac-66cd3b62abfd]>
  111. - Chains can now chain other chains and use partial arguments (Issue #1057).
  112. Example:
  113. .. code-block:: python
  114. >>> c1 = (add.s(2) | add.s(4))
  115. >>> c2 = (add.s(8) | add.s(16))
  116. >>> c3 = (c1 | c2)
  117. # 8 + 2 + 4 + 8 + 16
  118. >>> assert c3(8).get() == 38
  119. - Subtasks can now be used with unregistered tasks.
  120. You can specify subtasks even if you just have the name::
  121. >>> s = subtask(task_name, args=(), kwargs=())
  122. >>> s.delay()
  123. - The :program:`celery shell` command now always adds the current
  124. directory to the module path.
  125. - The worker will now properly handle the :exc:`pytz.AmbiguousTimeError`
  126. exception raised when an ETA/countdown is prepared while being in DST
  127. transition (Issue #1061).
  128. - force_execv: Now makes sure that task symbols in the original
  129. task modules will always use the correct app instance (Issue #1072).
  130. - AMQP Backend: Now republishes result messages that have been polled
  131. (using ``result.ready()`` and friends, ``result.get()`` will not do this
  132. in this version).
  133. - Crontab schedule values can now "wrap around"
  134. This means that values like ``11-1`` translates to ``[11, 12, 1]``.
  135. Contributed by Loren Abrams.
  136. - multi stopwait command now shows the pid of processes.
  137. Contributed by Loren Abrams.
  138. - Handling of ETA/countdown fixed when the :setting:`CELERY_ENABLE_UTC`
  139. setting is disabled (Issue #1065).
  140. - A number of uneeded properties were included in messages,
  141. caused by accidentally passing ``Queue.as_dict`` as message properties.
  142. - Rate limit values can now be float
  143. This also extends the string format so that values like ``"0.5/s"`` works.
  144. Contributed by Christoph Krybus
  145. - Fixed a typo in the broadcast routing documentation (Issue #1026).
  146. - Rewrote confusing section about idempotence in the task user guide.
  147. - Fixed typo in the daemonization tutorial (Issue #1055).
  148. - Fixed several typos in the documentation.
  149. Contributed by Marius Gedminas.
  150. - Batches: Now works when using the eventlet pool.
  151. Fix contributed by Thomas Grainger.
  152. - Batches: Added example sending results to :mod:`celery.contrib.batches`.
  153. Contributed by Thomas Grainger.
  154. - Mongodb backend: Connection ``max_pool_size`` can now be set in
  155. :setting:`CELERY_MONGODB_BACKEND_SETTINGS`.
  156. Contributed by Craig Younkins.
  157. - Fixed problem when using earlier versions of :mod:`pytz`.
  158. Fix contributed by Vlad.
  159. - Docs updated to include the default value for the
  160. :setting:`CELERY_TASK_RESULT_EXPIRES` setting.
  161. - Improvements to the django-celery tutorial.
  162. Contributed by Locker537.
  163. - The ``add_consumer`` control command did not properly persist
  164. the addition of new queues so that they survived connection failure
  165. (Issue #1079).
  166. 3.0.12
  167. ======
  168. :release-date: 2012-11-06 02:00 P.M UTC
  169. - Now depends on kombu 2.4.8
  170. - [Redis] New and improved fair queue cycle algorithm (Kevin McCarthy).
  171. - [Redis] Now uses a Redis-based mutex when restoring messages.
  172. - [Redis] Number of messages that can be restored in one interval is no
  173. longer limited (but can be set using the
  174. ``unacked_restore_limit``
  175. :setting:`transport option <BROKER_TRANSPORT_OPTIONS>`.)
  176. - Heartbeat value can be specified in broker URLs (Mher Movsisyan).
  177. - Fixed problem with msgpack on Python 3 (Jasper Bryant-Greene).
  178. - Now depends on billiard 2.7.3.18
  179. - Celery can now be used with static analysis tools like PyDev/PyCharm/pylint
  180. etc.
  181. - Development documentation has moved to Read The Docs.
  182. The new URL is: http://docs.celeryproject.org/en/master
  183. - New :setting:`CELERY_QUEUE_HA_POLICY` setting used to set the default
  184. HA policy for queues when using RabbitMQ.
  185. - New method ``Task.subtask_from_request`` returns a subtask using the current
  186. request.
  187. - Results get_many method did not respect timeout argument.
  188. Fix contributed by Remigiusz Modrzejewski
  189. - generic_init.d scripts now support setting :envvar:`CELERY_CREATE_DIRS` to
  190. always create log and pid directories (Issue #1045).
  191. This can be set in your :file:`/etc/default/celeryd`.
  192. - Fixed strange kombu import problem on Python 3.2 (Issue #1034).
  193. - Worker: ETA scheduler now uses millisecond precision (Issue #1040).
  194. - The ``--config`` argument to programs is now supported by all loaders.
  195. - The :setting:`CASSANDRA_OPTIONS` setting has now been documented.
  196. Contributed by Jared Biel.
  197. - Task methods (:mod:`celery.contrib.methods`) cannot be used with the old
  198. task base class, the task decorator in that module now inherits from the new.
  199. - An optimization was too eager and caused some logging messages to never emit.
  200. - :mod:`celery.contrib.batches` now works again.
  201. - Fixed missing whitespace in ``bdist_rpm`` requirements (Issue #1046).
  202. - Event state's ``tasks_by_name`` applied limit before filtering by name.
  203. Fix contributed by Alexander A. Sosnovskiy.
  204. .. _version-3.0.11:
  205. 3.0.11
  206. ======
  207. :release-date: 2012-09-26 04:00 P.M UTC
  208. - [security:low] generic-init.d scripts changed permissions of /var/log & /var/run
  209. In the daemonization tutorial the recommended directories were as follows:
  210. .. code-block:: bash
  211. CELERYD_LOG_FILE="/var/log/celery/%n.log"
  212. CELERYD_PID_FILE="/var/run/celery/%n.pid"
  213. But in the scripts themselves the default files were ``/var/log/celery%n.log``
  214. and ``/var/run/celery%n.pid``, so if the user did not change the location
  215. by configuration, the directories ``/var/log`` and ``/var/run`` would be
  216. created - and worse have their permissions and owners changed.
  217. This change means that:
  218. - Default pid file is ``/var/run/celery/%n.pid``
  219. - Default log file is ``/var/log/celery/%n.log``
  220. - The directories are only created and have their permissions
  221. changed if *no custom locations are set*.
  222. Users can force paths to be created by calling the ``create-paths``
  223. subcommand:
  224. .. code-block:: bash
  225. $ sudo /etc/init.d/celeryd create-paths
  226. .. admonition:: Upgrading Celery will not update init scripts
  227. To update the init scripts you have to re-download
  228. the files from source control and update them manually.
  229. You can find the init scripts for version 3.0.x at:
  230. http://github.com/celery/celery/tree/3.0/extra/generic-init.d
  231. - Now depends on billiard 2.7.3.17
  232. - Fixes request stack protection when app is initialized more than
  233. once (Issue #1003).
  234. - ETA tasks now properly works when system timezone is not the same
  235. as the configured timezone (Issue #1004).
  236. - Terminating a task now works if the task has been sent to the
  237. pool but not yet acknowledged by a pool process (Issue #1007).
  238. Fix contributed by Alexey Zatelepin
  239. - Terminating a task now properly updates the state of the task to revoked,
  240. and sends a ``task-revoked`` event.
  241. - Generic worker init script now waits for workers to shutdown by default.
  242. - Multi: No longer parses --app option (Issue #1008).
  243. - Multi: stop_verify command renamed to stopwait.
  244. - Daemonization: Now delays trying to create pidfile/logfile until after
  245. the working directory has been changed into.
  246. - :program:`celery worker` and :program:`celery beat` commands now respects
  247. the :option:`--no-color` option (Issue #999).
  248. - Fixed typos in eventlet examples (Issue #1000)
  249. Fix contributed by Bryan Bishop.
  250. Congratulations on opening bug #1000!
  251. - Tasks that raise :exc:`~celery.exceptions.Ignore` are now acknowledged.
  252. - Beat: Now shows the name of the entry in ``sending due task`` logs.
  253. .. _version-3.0.10:
  254. 3.0.10
  255. ======
  256. :release-date: 2012-09-20 05:30 P.M BST
  257. - Now depends on kombu 2.4.7
  258. - Now depends on billiard 2.7.3.14
  259. - Fixes crash at startup when using Django and pre-1.4 projects
  260. (setup_environ).
  261. - Hard time limits now sends the KILL signal shortly after TERM,
  262. to terminate processes that have signal handlers blocked by C extensions.
  263. - Billiard now installs even if the C extension cannot be built.
  264. It's still recommended to build the C extension if you are using
  265. a transport other than rabbitmq/redis (or use forced execv for some
  266. other reason).
  267. - Pool now sets a ``current_process().index`` attribute that can be used to create
  268. as many log files as there are processes in the pool.
  269. - Canvas: chord/group/chain no longer modifies the state when called
  270. Previously calling a chord/group/chain would modify the ids of subtasks
  271. so that:
  272. .. code-block:: python
  273. >>> c = chord([add.s(2, 2), add.s(4, 4)], xsum.s())
  274. >>> c()
  275. >>> c() <-- call again
  276. at the second time the ids for the tasks would be the same as in the
  277. previous invocation. This is now fixed, so that calling a subtask
  278. won't mutate any options.
  279. - Canvas: Chaining a chord to another task now works (Issue #965).
  280. - Worker: Fixed a bug where the request stack could be corrupted if
  281. relative imports are used.
  282. Problem usually manifested itself as an exception while trying to
  283. send a failed task result (``NoneType does not have id attribute``).
  284. Fix contributed by Sam Cooke.
  285. - Tasks can now raise :exc:`~celery.exceptions.Ignore` to skip updating states
  286. or events after return.
  287. Example:
  288. .. code-block:: python
  289. from celery.exceptions import Ignore
  290. @task
  291. def custom_revokes():
  292. if redis.sismember('tasks.revoked', custom_revokes.request.id):
  293. raise Ignore()
  294. - The worker now makes sure the request/task stacks are not modified
  295. by the initial ``Task.__call__``.
  296. This would previously be a problem if a custom task class defined
  297. ``__call__`` and also called ``super()``.
  298. - Because of problems the fast local optimization has been disabled,
  299. and can only be enabled by setting the :envvar:`USE_FAST_LOCALS` attribute.
  300. - Worker: Now sets a default socket timeout of 5 seconds at shutdown
  301. so that broken socket reads do not hinder proper shutdown (Issue #975).
  302. - More fixes related to late eventlet/gevent patching.
  303. - Documentation for settings out of sync with reality:
  304. - :setting:`CELERY_TASK_PUBLISH_RETRY`
  305. Documented as disabled by default, but it was enabled by default
  306. since 2.5 as stated by the 2.5 changelog.
  307. - :setting:`CELERY_TASK_PUBLISH_RETRY_POLICY`
  308. The default max_retries had been set to 100, but documented as being
  309. 3, and the interval_max was set to 1 but documented as 0.2.
  310. The default setting are now set to 3 and 0.2 as it was originally
  311. documented.
  312. Fix contributed by Matt Long.
  313. - Worker: Log messages when connection established and lost have been improved.
  314. - The repr of a crontab schedule value of '0' should be '*' (Issue #972).
  315. - Revoked tasks are now removed from reserved/active state in the worker
  316. (Issue #969)
  317. Fix contributed by Alexey Zatelepin.
  318. - gevent: Now supports hard time limits using ``gevent.Timeout``.
  319. - Documentation: Links to init scripts now point to the 3.0 branch instead
  320. of the development branch (master).
  321. - Documentation: Fixed typo in signals user guide (Issue #986).
  322. ``instance.app.queues`` -> ``instance.app.amqp.queues``.
  323. - Eventlet/gevent: The worker did not properly set the custom app
  324. for new greenlets.
  325. - Eventlet/gevent: Fixed a bug where the worker could not recover
  326. from connection loss (Issue #959).
  327. Also, because of a suspected bug in gevent the
  328. :setting:`BROKER_CONNECTION_TIMEOUT` setting has been disabled
  329. when using gevent
  330. 3.0.9
  331. =====
  332. :release-date: 2012-08-31 06:00 P.M BST
  333. - Important note for users of Django and the database scheduler!
  334. Recently a timezone issue has been fixed for periodic tasks,
  335. but erroneous timezones could have already been stored in the
  336. database, so for the fix to work you need to reset
  337. the ``last_run_at`` fields.
  338. You can do this by executing the following command:
  339. .. code-block:: bash
  340. $ python manage.py shell
  341. >>> from djcelery.models import PeriodicTask
  342. >>> PeriodicTask.objects.update(last_run_at=None)
  343. You also have to do this if you change the timezone or
  344. :setting:`CELERY_ENABLE_UTC` setting.
  345. - Note about the :setting:`CELERY_ENABLE_UTC` setting.
  346. If you previously disabled this just to force periodic tasks to work with
  347. your timezone, then you are now *encouraged to re-enable it*.
  348. - Now depends on Kombu 2.4.5 which fixes PyPy + Jython installation.
  349. - Fixed bug with timezones when :setting:`CELERY_ENABLE_UTC` is disabled
  350. (Issue #952).
  351. - Fixed a typo in the celerybeat upgrade mechanism (Issue #951).
  352. - Make sure the `exc_info` argument to logging is resolved (Issue #899).
  353. - Fixed problem with Python 3.2 and thread join timeout overflow (Issue #796).
  354. - A test case was occasionally broken for Python 2.5.
  355. - Unit test suite now passes for PyPy 1.9.
  356. - App instances now supports the with statement.
  357. This calls the new :meth:`~celery.Celery.close` method at exit, which
  358. cleans up after the app like closing pool connections.
  359. Note that this is only necessary when dynamically creating apps,
  360. e.g. for "temporary" apps.
  361. - Support for piping a subtask to a chain.
  362. For example:
  363. .. code-block:: python
  364. pipe = sometask.s() | othertask.s()
  365. new_pipe = mytask.s() | pipe
  366. Contributed by Steve Morin.
  367. - Fixed problem with group results on non-pickle serializers.
  368. Fix contributed by Steeve Morin.
  369. .. _version-3.0.8:
  370. 3.0.8
  371. =====
  372. :release-date: 2012-08-29 05:00 P.M BST
  373. - Now depends on Kombu 2.4.4
  374. - Fixed problem with amqplib and receiving larger message payloads
  375. (Issue #922).
  376. The problem would manifest itself as either the worker hanging,
  377. or occasionally a ``Framing error`` exception appearing.
  378. Users of the new ``pyamqp://`` transport must upgrade to
  379. :mod:`amqp` 0.9.3.
  380. - Beat: Fixed another timezone bug with interval and crontab schedules
  381. (Issue #943).
  382. - Beat: The schedule file is now automatically cleared if the timezone
  383. is changed.
  384. The schedule is also cleared when you upgrade to 3.0.8 from an earlier
  385. version, this to register the initial timezone info.
  386. - Events: The :event:`worker-heartbeat` event now include processed and active
  387. count fields.
  388. Contributed by Mher Movsisyan.
  389. - Fixed error with error email and new task classes (Issue #931).
  390. - ``BaseTask.__call__`` is no longer optimized away if it has been monkey
  391. patched.
  392. - Fixed shutdown issue when using gevent (Issue #911 & Issue #936).
  393. Fix contributed by Thomas Meson.
  394. .. _version-3.0.7:
  395. 3.0.7
  396. =====
  397. :release-date: 2012-08-24 05:00 P.M BST
  398. - Fixes several problems with periodic tasks and timezones (Issue #937).
  399. - Now depends on kombu 2.4.2
  400. - Redis: Fixes a race condition crash
  401. - Fixes an infinite loop that could happen when retrying establishing
  402. the broker connection.
  403. - Daemons now redirect standard file descriptors to :file:`/dev/null`
  404. Though by default the standard outs are also redirected
  405. to the logger instead, but you can disable this by changing
  406. the :setting:`CELERY_REDIRECT_STDOUTS` setting.
  407. - Fixes possible problems when eventlet/gevent is patched too late.
  408. - ``LoggingProxy`` no longer defines ``fileno()`` (Issue #928).
  409. - Results are now ignored for the chord unlock task.
  410. Fix contributed by Steeve Morin.
  411. - Cassandra backend now works if result expiry is disabled.
  412. Fix contributed by Steeve Morin.
  413. - The traceback object is now passed to signal handlers instead
  414. of the string representation.
  415. Fix contributed by Adam DePue.
  416. - Celery command: Extensions are now sorted by name.
  417. - A regression caused the :event:`task-failed` event to be sent
  418. with the exception object instead of its string representation.
  419. - The worker daemon would try to create the pid file before daemonizing
  420. to catch errors, but this file was not immediately released (Issue #923).
  421. - Fixes Jython compatibility.
  422. - ``billiard.forking_enable`` was called by all pools not just the
  423. processes pool, which would result in a useless warning if the billiard
  424. C extensions were not installed.
  425. .. _version-3.0.6:
  426. 3.0.6
  427. =====
  428. :release-date: 2012-08-17 11:00 P.M BST
  429. - Now depends on kombu 2.4.0
  430. - Now depends on billiard 2.7.3.12
  431. - Redis: Celery now tries to restore messages whenever there are no messages
  432. in the queue.
  433. - Crontab schedules now properly respects :setting:`CELERY_TIMEZONE` setting.
  434. It's important to note that crontab schedules uses UTC time by default
  435. unless this setting is set.
  436. Issue #904 and django-celery #150.
  437. - ``billiard.enable_forking`` is now only set by the processes pool.
  438. - The transport is now properly shown by :program:`celery report`
  439. (Issue #913).
  440. - The `--app` argument now works if the last part is a module name
  441. (Issue #921).
  442. - Fixed problem with unpickleable exceptions (billiard #12).
  443. - Adds ``task_name`` attribute to ``EagerResult`` which is always
  444. :const:`None` (Issue #907).
  445. - Old Task class in :mod:`celery.task` no longer accepts magic kwargs by
  446. default (Issue #918).
  447. A regression long ago disabled magic kwargs for these, and since
  448. no one has complained about it we don't have any incentive to fix it now.
  449. - The ``inspect reserved`` control command did not work properly.
  450. - Should now play better with static analyzation tools by explicitly
  451. specifying dynamically created attributes in the :mod:`celery` and
  452. :mod:`celery.task` modules.
  453. - Terminating a task now results in
  454. :exc:`~celery.exceptions.RevokedTaskError` instead of a ``WorkerLostError``.
  455. - ``AsyncResult.revoke`` now accepts ``terminate`` and ``signal`` arguments.
  456. - The :event:`task-revoked` event now includes new fields: ``terminated``,
  457. ``signum``, and ``expired``.
  458. - The argument to :class:`~celery.exceptions.TaskRevokedError` is now one
  459. of the reasons ``revoked``, ``expired`` or ``terminated``.
  460. - Old Task class does no longer use classmethods for push_request and
  461. pop_request (Issue #912).
  462. - ``GroupResult`` now supports the ``children`` attribute (Issue #916).
  463. - ``AsyncResult.collect`` now respects the ``intermediate`` argument
  464. (Issue #917).
  465. - Fixes example task in documentation (Issue #902).
  466. - Eventlet fixed so that the environment is patched as soon as possible.
  467. - eventlet: Now warns if celery related modules that depends on threads
  468. are imported before eventlet is patched.
  469. - Improved event and camera examples in the monitoring guide.
  470. - Disables celery command setuptools entrypoints if the command can't be
  471. loaded.
  472. - Fixed broken ``dump_request`` example in the tasks guide.
  473. .. _version-3.0.5:
  474. 3.0.5
  475. =====
  476. :release-date: 2012-08-01 04:00 P.M BST
  477. - Now depends on kombu 2.3.1 + billiard 2.7.3.11
  478. - Fixed a bug with the -B option (``cannot pickle thread.lock objects``)
  479. (Issue #894 + Issue #892, + django-celery #154).
  480. - The :control:`restart_pool` control command now requires the
  481. :setting:`CELERYD_POOL_RESTARTS` setting to be enabled
  482. This change was necessary as the multiprocessing event that the restart
  483. command depends on is responsible for creating many semaphores/file
  484. descriptors, resulting in problems in some environments.
  485. - ``chain.apply`` now passes args to the first task (Issue #889).
  486. - Documented previously secret options to the Django-Celery monitor
  487. in the monitoring userguide (Issue #396).
  488. - Old changelog are now organized in separate documents for each series,
  489. see :ref:`history`.
  490. .. _version-3.0.4:
  491. 3.0.4
  492. =====
  493. :release-date: 2012-07-26 07:00 P.M BST
  494. - Now depends on Kombu 2.3
  495. - New experimental standalone Celery monitor: Flower
  496. See :ref:`monitoring-flower` to read more about it!
  497. Contributed by Mher Movsisyan.
  498. - Now supports AMQP heartbeats if using the new ``pyamqp://`` transport.
  499. - The py-amqp transport requires the :mod:`amqp` library to be installed::
  500. $ pip install amqp
  501. - Then you need to set the transport URL prefix to ``pyamqp://``.
  502. - The default heartbeat value is 10 seconds, but this can be changed using
  503. the :setting:`BROKER_HEARTBEAT` setting::
  504. BROKER_HEARTBEAT = 5.0
  505. - If the broker heartbeat is set to 10 seconds, the heartbeats will be
  506. monitored every 5 seconds (double the hertbeat rate).
  507. See the `Kombu 2.3 changelog`_ for more information.
  508. .. _`Kombu 2.3 changelog`:
  509. http://kombu.readthedocs.org/en/latest/changelog.html#version-2-3-0
  510. - Now supports RabbitMQ Consumer Cancel Notifications, using the ``pyamqp://``
  511. transport.
  512. This is essential when running RabbitMQ in a cluster.
  513. See the `Kombu 2.3 changelog`_ for more information.
  514. - Delivery info is no longer passed directly through.
  515. It was discovered that the SQS transport adds objects that can't
  516. be pickled to the delivery info mapping, so we had to go back
  517. to using the whitelist again.
  518. Fixing this bug also means that the SQS transport is now working again.
  519. - The semaphore was not properly released when a task was revoked (Issue #877).
  520. This could lead to tasks being swallowed and not released until a worker
  521. restart.
  522. Thanks to Hynek Schlawack for debugging the issue.
  523. - Retrying a task now also forwards any linked tasks.
  524. This means that if a task is part of a chain (or linked in some other
  525. way) and that even if the task is retried, then the next task in the chain
  526. will be executed when the retry succeeds.
  527. - Chords: Now supports setting the interval and other keyword arguments
  528. to the chord unlock task.
  529. - The interval can now be set as part of the chord subtasks kwargs::
  530. chord(header)(body, interval=10.0)
  531. - In addition the chord unlock task now honors the Task.default_retry_delay
  532. option, used when none is specified, which also means that the default
  533. interval can also be changed using annotations:
  534. .. code-block:: python
  535. CELERY_ANNOTATIONS = {
  536. 'celery.chord_unlock': {
  537. 'default_retry_delay': 10.0,
  538. }
  539. }
  540. - New :meth:`@Celery.add_defaults` method can add new default configuration
  541. dicts to the applications configuration.
  542. For example::
  543. config = {'FOO': 10}
  544. celery.add_defaults(config)
  545. is the same as ``celery.conf.update(config)`` except that data will not be
  546. copied, and that it will not be pickled when the worker spawns child
  547. processes.
  548. In addition the method accepts a callable::
  549. def initialize_config():
  550. # insert heavy stuff that can't be done at import time here.
  551. celery.add_defaults(initialize_config)
  552. which means the same as the above except that it will not happen
  553. until the celery configuration is actually used.
  554. As an example, Celery can lazily use the configuration of a Flask app::
  555. flask_app = Flask()
  556. celery = Celery()
  557. celery.add_defaults(lambda: flask_app.config)
  558. - Revoked tasks were not marked as revoked in the result backend (Issue #871).
  559. Fix contributed by Hynek Schlawack.
  560. - Eventloop now properly handles the case when the epoll poller object
  561. has been closed (Issue #882).
  562. - Fixed syntax error in ``funtests/test_leak.py``
  563. Fix contributed by Catalin Iacob.
  564. - group/chunks: Now accepts empty task list (Issue #873).
  565. - New method names:
  566. - ``Celery.default_connection()`` ➠ :meth:`~@Celery.connection_or_acquire`.
  567. - ``Celery.default_producer()`` ➠ :meth:`~@Celery.producer_or_acquire`.
  568. The old names still work for backward compatibility.
  569. .. _version-3.0.3:
  570. 3.0.3
  571. =====
  572. :release-date: 2012-07-20 09:17 P.M BST
  573. :by: Ask Solem
  574. - amqplib passes the channel object as part of the delivery_info
  575. and it's not pickleable, so we now remove it.
  576. .. _version-3.0.2:
  577. 3.0.2
  578. =====
  579. :release-date: 2012-07-20 04:00 P.M BST
  580. :by: Ask Solem
  581. - A bug caused the following task options to not take defaults from the
  582. configuration (Issue #867 + Issue #858)
  583. The following settings were affected:
  584. - :setting:`CELERY_IGNORE_RESULT`
  585. - :setting:`CELERYD_SEND_TASK_ERROR_EMAILS`
  586. - :setting:`CELERY_TRACK_STARTED`
  587. - :setting:`CElERY_STORE_ERRORS_EVEN_IF_IGNORED`
  588. Fix contributed by John Watson.
  589. - Task Request: ``delivery_info`` is now passed through as-is (Issue #807).
  590. - The eta argument now supports datetime's with a timezone set (Issue #855).
  591. - The worker's banner displayed the autoscale settings in the wrong order
  592. (Issue #859).
  593. - Extension commands are now loaded after concurrency is set up
  594. so that they don't interfere with e.g. eventlet patching.
  595. - Fixed bug in the threaded pool (Issue #863)
  596. - The task failure handler mixed up the fields in :func:`sys.exc_info`.
  597. Fix contributed by Rinat Shigapov.
  598. - Fixed typos and wording in the docs.
  599. Fix contributed by Paul McMillan
  600. - New setting: :setting:`CELERY_WORKER_DIRECT`
  601. If enabled each worker will consume from their own dedicated queue
  602. which can be used to route tasks to specific workers.
  603. - Fixed several edge case bugs in the add consumer remote control command.
  604. - :mod:`~celery.contrib.migrate`: Can now filter and move tasks to specific
  605. workers if :setting:`CELERY_WORKER_DIRECT` is enabled.
  606. Among other improvements, the following functions have been added:
  607. * ``move_direct(filterfun, **opts)``
  608. * ``move_direct_by_id(task_id, worker_hostname, **opts)``
  609. * ``move_direct_by_idmap({task_id: worker_hostname, ...}, **opts)``
  610. * ``move_direct_by_taskmap({task_name: worker_hostname, ...}, **opts)``
  611. - :meth:`~celery.Celery.default_connection` now accepts a pool argument that
  612. if set to false causes a new connection to be created instead of acquiring
  613. one from the pool.
  614. - New signal: :signal:`celeryd_after_setup`.
  615. - Default loader now keeps lowercase attributes from the configuration module.
  616. .. _version-3.0.1:
  617. 3.0.1
  618. =====
  619. :release-date: 2012-07-10 06:00 P.M BST
  620. :by: Ask Solem
  621. - Now depends on kombu 2.2.5
  622. - inspect now supports limit argument::
  623. myapp.control.inspect(limit=1).ping()
  624. - Beat: now works with timezone aware datetime's.
  625. - Task classes inheriting ``from celery import Task``
  626. mistakingly enabled ``accept_magic_kwargs``.
  627. - Fixed bug in ``inspect scheduled`` (Issue #829).
  628. - Beat: Now resets the schedule to upgrade to UTC.
  629. - The :program:`celery worker` command now works with eventlet/gevent.
  630. Previously it would not patch the environment early enough.
  631. - The :program:`celery` command now supports extension commands
  632. using setuptools entry-points.
  633. Libraries can add additional commands to the :program:`celery`
  634. command by adding an entry-point like::
  635. setup(
  636. entry_points=[
  637. 'celery.commands': [
  638. 'foo = my.module:Command',
  639. ],
  640. ],
  641. ...)
  642. The command must then support the interface of
  643. :class:`celery.bin.base.Command`.
  644. - contrib.migrate: New utilities to move tasks from one queue to another.
  645. - :func:`~celery.contrib.migrate.move_tasks`
  646. - :func:`~celery.contrib.migrate.move_task_by_id`
  647. - The :event:`task-sent` event now contains ``exchange`` and ``routing_key``
  648. fields.
  649. - Fixes bug with installing on Python 3.
  650. Fix contributed by Jed Smith.
  651. .. _version-3.0.0:
  652. 3.0.0 (Chiastic Slide)
  653. ======================
  654. :release-date: 2012-07-07 01:30 P.M BST
  655. :by: Ask Solem
  656. See :ref:`whatsnew-3.0`.