Add active worker count to buildmanager logs.

This commit is contained in:
Jimmy Zelinskie 2014-12-16 13:37:40 -05:00
parent 37079315d2
commit 33f12c58ba
3 changed files with 10 additions and 2 deletions

View file

@ -47,3 +47,9 @@ class BaseManager(object):
one of: incomplete, error, complete. If incomplete, the job should be requeued.
"""
raise NotImplementedError
def num_workers(self):
""" Returns the number of active build workers currently registered. This includes those
that are currently busy and awaiting more work.
"""
raise NotImplementedError