Merge "Allow a jobs posted book to be none by default"

This commit is contained in:
Jenkins
2014-08-14 11:54:04 +00:00
committed by Gerrit Code Review
2 changed files with 6 additions and 6 deletions

View File

@@ -432,7 +432,7 @@ class ZookeeperJobBoard(jobboard.NotifyingJobBoard):
else: else:
child_proc(request) child_proc(request)
def post(self, name, book, details=None): def post(self, name, book=None, details=None):
def format_posting(job_uuid): def format_posting(job_uuid):
posting = { posting = {

View File

@@ -118,14 +118,14 @@ class JobBoard(object):
""" """
@abc.abstractmethod @abc.abstractmethod
def post(self, name, book, details=None): def post(self, name, book=None, details=None):
"""Atomically creates and posts a job to the jobboard. """Atomically creates and posts a job to the jobboard.
This posting allowing others to attempt to claim that job (and This posting allowing others to attempt to claim that job (and
subsequently work on that job). The contents of the provided logbook subsequently work on that job). The contents of the provided logbook,
must provide *enough* information for others to reference to details dictionary, or name (or a mix of these) must provide *enough*
construct & work on the desired entries that are contained in that information for consumers to reference to construct and perform that
logbook. jobs contained work (whatever it may be).
Once a job has been posted it can only be removed by consuming that Once a job has been posted it can only be removed by consuming that
job (after that job is claimed). Any entity can post/propose jobs job (after that job is claimed). Any entity can post/propose jobs