matflow.Submission#
- class matflow.Submission(index, jobscripts, workflow=None, submission_parts=None, JS_parallelism=None, environments=None)#
Bases:
Submission
Methods
Get jobscripts that are active on this machine, and their active states.
Get the end time of a given submission part.
Get the start time of a given submission part.
Get unique schedulers and which of this submission's jobscripts they correspond to.
Get unique schedulers and which of the passed jobscripts they correspond to.
Get unique shells and which jobscripts they correspond to.
Generate and submit the jobscripts of this submission.
Attributes
Get the final non-None end time over all submission parts.
All associated jobscript indices.
Jobscript indices that have not yet been successfully submitted.
Get the first non-None start time over all submission parts.
Jobscript indices that have been successfully submitted.
- Parameters:
- property EARs_by_elements#
- property JS_parallelism#
- property abort_EARs_file_name#
- property abort_EARs_file_path#
- property all_EAR_IDs#
- property all_EARs#
- app = App(name='MatFlow', version='0.3.0a129')#
- cancel()#
- property end_time#
Get the final non-None end time over all submission parts.
- property environments: EnvironmentsList#
- classmethod from_json_like(json_like, shared_data=None)#
- Parameters:
json_like (Union[Dict, List]) –
shared_data (Optional[Dict[str, ObjectList]]) –
- get_active_jobscripts(as_json=False)#
Get jobscripts that are active on this machine, and their active states.
- get_end_time(submit_time)#
Get the end time of a given submission part.
- Parameters:
submit_time (str) –
- Return type:
Union[datetime, None]
- get_start_time(submit_time)#
Get the start time of a given submission part.
- Parameters:
submit_time (str) –
- Return type:
Union[datetime, None]
- get_unique_schedulers()#
Get unique schedulers and which of this submission’s jobscripts they correspond to.
- Return type:
Dict[Tuple[int], Scheduler]
- static get_unique_schedulers_of_jobscripts(jobscripts)#
Get unique schedulers and which of the passed jobscripts they correspond to.
Uniqueness is determines only by the Scheduler.unique_properties tuple.
- get_unique_shells()#
Get unique shells and which jobscripts they correspond to.
- Return type:
Dict[Tuple[int], Shell]
- property needs_submit#
- property outstanding_jobscripts: Tuple[int]#
Jobscript indices that have not yet been successfully submitted.
- property path#
- property start_time#
Get the first non-None start time over all submission parts.
- property status#
- submit(status, ignore_errors=False, print_stdout=False, add_to_known=True)#
Generate and submit the jobscripts of this submission.
- to_dict()#
- to_json_like(dct=None, shared_data=None, exclude=None, path=None)#