From aaeadeaa6bd3a8c211f14c1bc8e3b29a87f94d64 Mon Sep 17 00:00:00 2001 From: Ilan Steemers Date: Mon, 6 Jul 2015 11:17:06 +0200 Subject: [PATCH] Small typo and rephrasing of the stop procedure --- docs/cluster.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/cluster.rst b/docs/cluster.rst index 8cb39d5..8d3a147 100644 --- a/docs/cluster.rst +++ b/docs/cluster.rst @@ -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. 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. -Afterwards the sentinel waits for the monitor to empty the result queue before the stop procedure is complete. +This ensures that the queue is emptied before the workers exit. +Afterwards the sentinel waits for the monitor to empty the result and then the stop procedure is complete. - Send stop event to pusher - Wait for pusher to exit - Put poison pills in the Task Queue - Wait for all the workers to clear the queue and stop - 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:: If you force the cluster to terminate before the stop procedure has completed, you can lose tasks and their results.