glossary.rst 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. .. _glossary:
  2. Glossary
  3. ========
  4. .. glossary::
  5. :sorted:
  6. acknowledged
  7. Workers acknowledge messages to signify that a message has been
  8. handled. Failing to acknowledge a message
  9. will cause the message to be redelivered. Exactly when a
  10. transaction is considered a failure varies by transport. In AMQP the
  11. transaction fails when the connection/channel is closed (or lost),
  12. but in Redis/SQS the transaction times out after a configurable amount
  13. of time (the ``visibility_timeout``).
  14. ack
  15. Short for :term:`acknowledged`.
  16. request
  17. Task messages are converted to *requests* within the worker.
  18. The request information is also available as the task's
  19. :term:`context` (the ``task.request`` attribute).
  20. calling
  21. Sends a task message so that the task function is
  22. :term:`executed <executing>` by a worker.
  23. kombu
  24. Python messaging library used by Celery to send and receive messages.
  25. billiard
  26. Fork of the Python multiprocessing library containing improvements
  27. required by Celery.
  28. executing
  29. Workers *execute* task :term:`requests <request>`.
  30. apply
  31. Originally a synonym to :term:`call <calling>` but used to signify
  32. that a function is executed by the current process.
  33. context
  34. The context of a task contains information like the id of the task,
  35. it's arguments and what queue it was delivered to.
  36. It can be accessed as the tasks ``request`` attribute.
  37. See :ref:`task-request-info`
  38. idempotent
  39. Idempotence is a mathematical property that describes a function that
  40. can be called multiple times without changing the result.
  41. Practically it means that a function can be repeated many times without
  42. unintented effects, but not necessarily side-effect free in the pure
  43. sense (compare to :term:`nullipotent`).
  44. nullipotent
  45. describes a function that will have the same effect, and give the same
  46. result, even if called zero or multiple times (side-effect free).
  47. A stronger version of :term:`idempotent`.
  48. reentrant
  49. describes a function that can be interrupted in the middle of
  50. execution (e.g. by hardware interrupt or signal) and then safely
  51. called again later. Reentrancy is not the same as
  52. :term:`idempotence <idempotent>` as the return value does not have to
  53. be the same given the same inputs, and a reentrant function may have
  54. side effects as long as it can be interrupted; An idempotent function
  55. is always reentrant, but the reverse may not be true.
  56. cipater
  57. Celery release 3.1 named after song by Autechre
  58. (http://www.youtube.com/watch?v=OHsaqUr_33Y)
  59. prefetch multiplier
  60. The :term:`prefetch count` is configured by using the
  61. :setting:`CELERYD_PREFETCH_MULTIPLIER` setting, which is multiplied
  62. by the number of pool slots (threads/processes/greenthreads).
  63. prefetch count
  64. Maximum number of unacknowledged messages a consumer can hold and if
  65. exceeded the transport should not deliver any more messages to that
  66. consumer. See :ref:`optimizing-prefetch-limit`.