@@ -21,6 +21,7 @@ align="right">
21
21
* [ Fields of the \_ queue\_ taken\_ 2 space] ( #fields-of-the-_queue_taken_2-space )
22
22
* [ Fields of the \_ queue\_ session\_ ids space] ( #fields-of-the-_queue_session_ids-space )
23
23
* [ Fields of the space associated with each queue] ( #fields-of-the-space-associated-with-each-queue )
24
+ * [ Task state diagram] ( #task-state-diagram )
24
25
* [ Installing] ( #installing )
25
26
* [ Using the queue module] ( #using-the-queue-module )
26
27
* [ Initialization] ( #initialization )
@@ -295,14 +296,32 @@ The `task_state` field takes one of the following values
295
296
(different queue types support different
296
297
sets of ` task_state ` values, so this is a superset):
297
298
298
- * 'r' - the task is ready for execution (the first consumer executing
299
+ * 'r' - the task is ** ready** for execution (the first consumer executing
299
300
a ` take ` request will get it)
300
- * 't' - the task has been taken by a consumer
301
- * '-' - the task has been executed (a task is removed from the queue
302
- after it
303
- has been executed, so this value will rarely be seen)
304
- * '!' - the task is buried (disabled temporarily until further changes)
305
- * '~ ' - the task is delayed for some time
301
+ * 't' - the task has been ** taken** by a consumer
302
+ * '-' - the task has been ** executed (done)** (a task is removed from the queue
303
+ after it has been executed, so this value will rarely be seen)
304
+ * '!' - the task is ** buried** (disabled temporarily until further changes)
305
+ * '~ ' - the task is ** delayed** for some time.
306
+
307
+ For details on the state transitions, refer to [ Task state diagram] ( #task-state-diagram ) .
308
+
309
+ # Task state diagram
310
+
311
+ The following diagram shows possible transitions between the [ task states] ( #fields-of-the-space-associated-with-each-queue ) .
312
+ For information on the transition triggers, refer to:
313
+
314
+ * [ put()] ( #putting-a-task-in-a-queue )
315
+ * [ release()] ( #releasing-a-task )
316
+ * [ take()] ( #taking-a-task-from-the-queue-consuming )
317
+ * [ kick()] ( #kicking-a-number-of-tasks )
318
+ * [ bury()] ( #burying-a-task )
319
+ * [ ack()] ( #acknowledging-the-completion-of-a-task )
320
+ * [ delete()] ( #deleting-a-task )
321
+ * description of the ` timeout ` , ` ttl timeout ` , and ` ttr timeout ` options in
322
+ the sections of the corresponding [ queue types] ( #queue-types ) .
323
+
324
+ ![ Task state diagram] ( ./doc/images/statediagram.svg )
306
325
307
326
# Installing
308
327
0 commit comments