Debian Codegraph @

docs/glossary.rst

raw
1 .. _glossary:
2
3 Glossary
4 ========
5
6 .. glossary::
7 :sorted:
8
9 acknowledged
10 Workers acknowledge messages to signify that a message has been
11 handled. Failing to acknowledge a message
12 will cause the message to be redelivered. Exactly when a
13 transaction is considered a failure varies by transport. In AMQP the
14 transaction fails when the connection/channel is closed (or lost),
15 but in Redis/SQS the transaction times out after a configurable amount
16 of time (the ``visibility_timeout``).
17
18 ack
19 Short for :term:`acknowledged`.
20
21 early acknowledgment
22 Task is :term:`acknowledged` just-in-time before being executed,
23 meaning the task won't be redelivered to another worker if the
24 machine loses power, or the worker instance is abruptly killed,
25 mid-execution.
26
27 Configured using :setting:`task_acks_late`.
28
29 late acknowledgment
30 Task is :term:`acknowledged` after execution (both if successful, or
31 if the task is raising an error), which means the task will be
32 redelivered to another worker in the event of the machine losing
33 power, or the worker instance being killed mid-execution.
34
35 Configured using :setting:`task_acks_late`.
36
37 early ack
38 Short for :term:`early acknowledgment`
39
40 late ack
41 Short for :term:`late acknowledgment`
42
43 ETA
44 "Estimated Time of Arrival", in Celery and Google Task Queue, etc.,
45 used as the term for a delayed message that should not be processed
46 until the specified ETA time. See :ref:`calling-eta`.
47
48 request
49 Task messages are converted to *requests* within the worker.
50 The request information is also available as the task's
51 :term:`context` (the ``task.request`` attribute).
52
53 calling
54 Sends a task message so that the task function is
55 :term:`executed <executing>` by a worker.
56
57 kombu
58 Python messaging library used by Celery to send and receive messages.
59
60 billiard
61 Fork of the Python multiprocessing library containing improvements
62 required by Celery.
63
64 executing
65 Workers *execute* task :term:`requests <request>`.
66
67 apply
68 Originally a synonym to :term:`call <calling>` but used to signify
69 that a function is executed by the current process.
70
71 context
72 The context of a task contains information like the id of the task,
73 it's arguments and what queue it was delivered to.
74 It can be accessed as the tasks ``request`` attribute.
75 See :ref:`task-request-info`
76
77 idempotent
78 Idempotence is a mathematical property that describes a function that
79 can be called multiple times without changing the result.
80 Practically it means that a function can be repeated many times without
81 unintended effects, but not necessarily side-effect free in the pure
82 sense (compare to :term:`nullipotent`).
83
84 Further reading: https://en.wikipedia.org/wiki/Idempotent
85
86 nullipotent
87 describes a function that'll have the same effect, and give the same
88 result, even if called zero or multiple times (side-effect free).
89 A stronger version of :term:`idempotent`.
90
91 reentrant
92 describes a function that can be interrupted in the middle of
93 execution (e.g., by hardware interrupt or signal), and then safely
94 called again later. Reentrancy isn't the same as
95 :term:`idempotence <idempotent>` as the return value doesn't have to
96 be the same given the same inputs, and a reentrant function may have
97 side effects as long as it can be interrupted; An idempotent function
98 is always reentrant, but the reverse may not be true.
99
100 cipater
101 Celery release 3.1 named after song by Autechre
102 (http://www.youtube.com/watch?v=OHsaqUr_33Y)
103
104 prefetch multiplier
105 The :term:`prefetch count` is configured by using the
106 :setting:`worker_prefetch_multiplier` setting, which is multiplied
107 by the number of pool slots (threads/processes/greenthreads).
108
109 .. note::
110 If you are using eta or countdown tasks, the :setting:`worker_prefetch_multiplier`
111 still determines the base prefetch count. The :setting:`worker_eta_task_limit`
112 setting, when enabled, instead caps the total number of unacknowledged
113 messages the worker will hold (including eta/countdown tasks). See
114 :setting:`worker_eta_task_limit`.
115
116 `prefetch count`
117 Maximum number of unacknowledged messages a consumer can hold and if
118 exceeded the transport shouldn't deliver any more messages to that
119 consumer. See :ref:`optimizing-prefetch-limit`.
120
121 pidbox
122 A process mailbox, used to implement remote control commands.