hpcflow.sdk.monitoring.active_runs.ActiveRunTracker#

class hpcflow.sdk.monitoring.active_runs.ActiveRunTracker(workflow, submission, jobscript, item)#

Bases: object

Advance a constant-size cursor through a fixed sequential execution plan.

Methods

clear

Clear the current ID on exit without discarding progress.

context

Route cross-item skip notifications to this submission during execution.

finish

Clear the active ID while retaining the last-started cursor.

for_workflow

Resolve a scheduler array item, or item zero for a direct/serial job.

start

Publish the next sequential run before execution/preparation.

Parameters:
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

start(run_ids)#

Publish the next sequential run before execution/preparation.

Parameters:

run_ids (Iterable[int])

Return type:

None