hpcflow.sdk.monitoring.active_runs.ActiveRunTracker#
- class hpcflow.sdk.monitoring.active_runs.ActiveRunTracker(workflow, submission, jobscript, item)#
Bases:
objectAdvance a constant-size cursor through a fixed sequential execution plan.
Methods
Clear the current ID on exit without discarding progress.
Route cross-item skip notifications to this submission during execution.
Clear the active ID while retaining the last-started cursor.
Resolve a scheduler array item, or item zero for a direct/serial job.
Publish the next sequential run before execution/preparation.
- clear()#
Clear the current ID on exit without discarding progress.
- Return type:
None
- context()#
Route cross-item skip notifications to this submission during execution.
- Return type:
Iterator[None]
- finish(run_ids)#
Clear the active ID while retaining the last-started cursor.
- Parameters:
run_ids (Iterable[int])
- Return type:
None
- classmethod for_workflow(workflow, submission, jobscript)#
Resolve a scheduler array item, or item zero for a direct/serial job.
- Parameters:
- Return type:
ActiveRunTracker | None