[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 10/13] Planner: ms-queuedaemon: Break out queuerun-finished/<walker>
This formalises the queue-completed interface, allowing parts outside the queuerun machinery to cleanly be notified when a queue is completed, and relieving the queuerun-perhaps-step of the need to know what to do for the end of any particular walker's queue. Currently there is still only one walker, `plan'. Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> --- ms-queuedaemon | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ms-queuedaemon b/ms-queuedaemon index 779ede0..1def285 100755 --- a/ms-queuedaemon +++ b/ms-queuedaemon @@ -172,6 +172,11 @@ proc runneeded-perhaps-start {} { queuerun-start plan } +proc queuerun-finished/plan {} { + runneeded-ensure-will 0 + report-plan plan +} + proc runneeded-ensure-polling {} { log-event runneeded-ensure-polling global polling_after queue c @@ -245,8 +250,7 @@ proc queuerun-perhaps-step {w} { if {![llength $queue_running]} { unset queue_running - runneeded-ensure-will 0 - report-plan $w + queuerun-finished/$w return } -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |