def __init__(self, batch_parameters, submission_cmd, check_interval=10, do_clean_up=False, submission_delay=0.5, max_jobs_in_queue=0): IndependentComputationEngine.__init__(self) self.batch_parameters = batch_parameters self.check_interval = check_interval self.do_clean_up = do_clean_up self.submission_cmd = submission_cmd self.submission_delay = submission_delay self.max_jobs_in_queue = max_jobs_in_queue # make sure submission command executable is in path if not FileSystem.cmd_exists(submission_cmd): raise ValueError("Submission command executable \"%s\" not found" % submission_cmd) # list of tuples of (job_name, submission_time), which is kept in sorted # order by the time, only unfinished jobs self.submitted_jobs = [] # list of all jobs ever submitted self.all_jobs = [] # whether to also store all aggregators in current working dir self.store_fire_and_forget = False
def __init__(self, batch_parameters, submission_cmd, check_interval=10, do_clean_up=False, submission_delay=0.5, max_jobs_in_queue=0): IndependentComputationEngine.__init__(self) self.batch_parameters = batch_parameters self.check_interval = check_interval self.do_clean_up = do_clean_up self.submission_cmd = submission_cmd self.submission_delay = submission_delay self.max_jobs_in_queue = max_jobs_in_queue # make sure submission command executable is in path if not FileSystem.cmd_exists(submission_cmd): raise ValueError("Submission command executable \"%s\" not found" % submission_cmd) # list of tuples of (job_name, submission_time), which is kept in sorted # order by the time, only unfinished jobs self.submitted_jobs = [] # list of all jobs ever submitted self.all_jobs = [] # whether to also store all aggregators in current working dir self.store_fire_and_forget = False
def __init__(self): IndependentComputationEngine.__init__(self)