def __init__(self, new_process, echo, *args, **kwargs): Manager.__init__(self, *args, **kwargs) self.new_process = new_process self.echo = echo if new_process and echo: msg = ('Compmake does not yet support echoing stdout/stderr ' 'when jobs are run in a new process.') warning(msg)
def host_failed(self, job_id): Manager.host_failed(self, job_id) assert job_id in self.job2subname name = self.job2subname[job_id] del self.job2subname[job_id] assert name in self.sub_processing assert name not in self.sub_available self.sub_processing.remove(name) # put in sub_aborted self.sub_aborted.add(name)
def __init__(self, context, cq, num_processes, recurse=False, new_process=False, show_output=False): Manager.__init__(self, context=context, cq=cq, recurse=recurse) self.num_processes = num_processes self.last_accepted = 0 self.new_process = new_process self.show_output = show_output if new_process and show_output: msg = ('Compmake does not yet support echoing stdout/stderr ' 'when jobs are run in a new process.') warning(msg) self.cleaned = False
def __init__(self, context, cq, num_processes, recurse=False, show_output=False, new_process=False, volumes=[], rdb=False, rdb_vol=None, rdb_db=None): Manager.__init__(self, context=context, cq=cq, recurse=recurse) self.num_processes = num_processes self.last_accepted = 0 self.cleaned = False self.show_output = show_output self.new_process = new_process self.volumes = volumes self.rdb = rdb self.rdb_db = rdb_db self.rdb_vol = rdb_vol
def job_succeeded(self, job_id): Manager.job_succeeded(self, job_id) self._clear(job_id)
def job_failed(self, job_id, deleted_jobs): Manager.job_failed(self, job_id, deleted_jobs) self._clear(job_id)