hpcflow.sdk.monitoring.run_index.RunMetadata#

class hpcflow.sdk.monitoring.run_index.RunMetadata(task, task_name, element, iteration, action, attempt, jobscript_index, jobscript_element, started_at='')#

Bases: object

Stable display coordinates and the zero-based parent scheduler array element.

Methods

from_json

Validate indexed positions before they can suppress a workflow-store read.

from_state

Capture coordinates once; state and exit results are never authoritative here.

scheduler_state

Construct a nonterminal, explicitly scheduler-derived display observation.

Attributes

Parameters:
  • task (int)

  • task_name (str)

  • element (int)

  • iteration (int)

  • action (int)

  • attempt (int)

  • jobscript_index (int)

  • jobscript_element (int)

  • started_at (str)

action: int#
attempt: int#
element: int#
classmethod from_json(value)#

Validate indexed positions before they can suppress a workflow-store read.

Parameters:

value (dict)

Return type:

RunMetadata

classmethod from_state(state, jobscript, element)#

Capture coordinates once; state and exit results are never authoritative here.

Parameters:
Return type:

RunMetadata

iteration: int#
jobscript_element: int#
jobscript_index: int#
scheduler_state(name)#

Construct a nonterminal, explicitly scheduler-derived display observation.

Submitted is the only engine-level assertion: the parent job is scheduled. A queued parent does not supply an individual run’s stored start/exit state.

Parameters:

name (str | None)

Return type:

ActionRunState

started_at: str#
task: int#
task_name: str#