mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-04 07:38:12 +08:00
Small typo
and rephrasing of the stop procedure
This commit is contained in:
+4
-3
@@ -121,15 +121,16 @@ Stop procedure
|
|||||||
|
|
||||||
When a stop signal is given, the sentinel exits the guard loop and instructs the pusher to stop pushing.
|
When a stop signal is given, the sentinel exits the guard loop and instructs the pusher to stop pushing.
|
||||||
Once this is confirmed, the sentinel pushes poison pills onto the task queue and will wait for all the workers to die.
|
Once this is confirmed, the sentinel pushes poison pills onto the task queue and will wait for all the workers to die.
|
||||||
This ensure that the queue is emptied before the workers exit.
|
This ensures that the queue is emptied before the workers exit.
|
||||||
Afterwards the sentinel waits for the monitor to empty the result queue before the stop procedure is complete.
|
Afterwards the sentinel waits for the monitor to empty the result and then the stop procedure is complete.
|
||||||
|
|
||||||
- Send stop event to pusher
|
- Send stop event to pusher
|
||||||
- Wait for pusher to exit
|
- Wait for pusher to exit
|
||||||
- Put poison pills in the Task Queue
|
- Put poison pills in the Task Queue
|
||||||
- Wait for all the workers to clear the queue and stop
|
- Wait for all the workers to clear the queue and stop
|
||||||
- Put a poison pill on the Result Queue
|
- Put a poison pill on the Result Queue
|
||||||
- Wait for monitor to stop
|
- Wait for monitor to process remaining results
|
||||||
|
- Signal that we have stopped
|
||||||
|
|
||||||
.. warning::
|
.. warning::
|
||||||
If you force the cluster to terminate before the stop procedure has completed, you can lose tasks and their results.
|
If you force the cluster to terminate before the stop procedure has completed, you can lose tasks and their results.
|
||||||
|
|||||||
Reference in New Issue
Block a user