hpcflow.app.Submission#
- class hpcflow.app.Submission(index, jobscripts, workflow, submission_attempts=None, JS_parallelism=None)#
Bases:
Submission
Methods
Get a unique schedulers and which jobscripts they correspond to.
Get unique shells and which jobscripts they correspond to.
For all EARs in this submission (across all jobscripts), return a tuple of indices that can be passed to Workflow.set_EAR_submission_index.
Generate and submit the jobscripts of this submission.
Attributes
All associated jobscript indices.
Jobscript indices that have not yet been successfully submitted.
Jobscript indices that have been successfully submitted.
- Parameters:
index (int) –
jobscripts (List[app.Jobscript]) –
workflow (app.Workflow) –
submission_attempts (Optional[List]) –
JS_parallelism (Optional[bool]) –
- property JS_parallelism#
- app = BaseApp(name='hpcFlow', version='0.2.0a50')#
- classmethod from_json_like(json_like, shared_data=None)#
- Parameters:
json_like (Union[Dict, List]) –
shared_data (Optional[Dict[str, ObjectList]]) –
- get_unique_schedulers()#
Get a unique schedulers and which jobscripts they correspond to.
- get_unique_shells()#
Get unique shells and which jobscripts they correspond to.
- property needs_submit#
- property outstanding_jobscripts: Tuple[int]#
Jobscript indices that have not yet been successfully submitted.
- property path#
- prepare_EAR_submission_idx_update()#
For all EARs in this submission (across all jobscripts), return a tuple of indices that can be passed to Workflow.set_EAR_submission_index.
- property status#
- submit(task_artifacts_path, ignore_errors=False, print_stdout=False)#
Generate and submit the jobscripts of this submission.
- to_dict()#
- to_json_like(dct=None, shared_data=None, exclude=None, path=None)#