Commit ef52306a authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

workerpool: Export function to check for running tasks

Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent e0545ee9
......@@ -412,6 +412,16 @@ class WorkerPool(object):
return True
return False
def HasRunningTasks(self):
"""Checks whether there's at least one task running.
return self._HasRunningTasksUnlocked()
def Quiesce(self):
"""Waits until the task queue is empty.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment