hpcflow.app.submit_workflow#

hpcflow.app.submit_workflow(workflow_path, JS_parallelism=None, wait=False, return_idx=False, tasks=None)#

Submit an existing hpcFlow workflow.

Parameters:
  • workflow_path (PathLike) – Path to an existing workflow.

  • JS_parallelism (bool | None) – If True, allow multiple jobscripts to execute simultaneously. Raises if set to True but the store type does not support the jobscript_parallelism feature. If not set, jobscript parallelism will be used if the store type supports it.

  • wait (bool) – Whether to wait for the submission to complete.

  • return_idx (bool) – Whether to return the index information.

  • tasks (list[int] | None) – List of task indices to include in this submission. By default all tasks are included.

Returns:

Mapping of submission handles, if requested by return_idx parameter.

Return type:

dict[int, list[int]]