merge_jobs¶
- merge_jobs(jobs, task, merge=None, ignore=None)[source]¶
Merge jobs that are identical apart from the arguments named in ignore. These jobs will be recreated with
Identical tasks are identified by creating a hash of the dictionary of task keyword arguments, ignoring keywords specified in the 'ignore' argument. Jobs with the same hash can be merged; this is done by appending the spw argument of job X to the spw argument of memoed job Y, whereafter job X can be discarded.
- Parameters:
jobs (a list of
JobRequest) -- the job requests to mergetask (a reference to a function on :class:`~pipeline.infrastructure.jobrequest.casa_tasks') -- the CASA task to recreate
ignore (an iterable containing strings) -- the task arguments to ignore during hash creation
- Return type:
a list of
JobRequest