hpcflow.sdk.monitoring.models.JobRecord#

class hpcflow.sdk.monitoring.models.JobRecord(jobscript_index, scheduler_type='', os_name='', scheduler_args=<factory>, hostname='', machine=None, scheduler_reference=None, is_array=False, run_ids=<factory>, process_created_at=None, last_checked_at='', last_observed_state=<factory>, observation=None)#

Bases: object

Saved scheduler context and reference for one successfully submitted jobscript.

Contain everything required to query or cancel without opening a workflow store. run_ids associate jobs with cached action states; observations and direct process creation time support later status checks and PID-reuse detection.

Methods

from_json

Decode a saved job, converting legacy process-reference sequences to a model.

Attributes

Parameters:
classmethod from_json(data)#

Decode a saved job, converting legacy process-reference sequences to a model.

Parameters:

data (dict)

Return type:

JobRecord

hostname: str#
is_array: bool#
jobscript_index: int#
last_checked_at: str#
last_observed_state: list[str]#
machine: str | None#
observation: JobObservation | None#
os_name: str#
process_created_at: float | None#
run_ids: list[int]#
scheduler_args: dict[str, Any]#
scheduler_reference: str | ProcessReference | None#
scheduler_type: str#