jqueue: Factorize code checking for drained queue
authorMichael Hanselmann <hansmi@google.com>
Wed, 16 Nov 2011 08:06:23 +0000 (09:06 +0100)
committerMichael Hanselmann <hansmi@google.com>
Thu, 17 Nov 2011 13:39:48 +0000 (14:39 +0100)
commitc8d0be942aaea69472ffb86dbdc30359a0680a46
treed87086e576616877599f6d47a7ac6c4bfe6b72b3
parent69f0340a287df33cd5129d50835b9829e14783f6
jqueue: Factorize code checking for drained queue

This is in preparation for a clean(er) shutdown of masterd.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/jqueue.py