hpcflow.sdk.persistence.base.StoreEAR#
- class hpcflow.sdk.persistence.base.StoreEAR(id_, is_pending, elem_iter_ID, action_idx, commands_idx, data_idx, submission_idx=None, skip=False, success=None, start_time=None, end_time=None, snapshot_start=None, snapshot_end=None, exit_code=None, metadata=None, run_hostname=None)#
Bases:
object
- Parameters:
data_idx (Dict[str, int]) – Maps parameter names within this EAR to parameter data indices.
metadata (Dict[str, Any]) – Metadata concerning e.g. the state of the EAR.
action_idx (int) – The task schema action associated with this EAR.
id_ (int) –
is_pending (bool) –
elem_iter_ID (int) –
submission_idx (int | None) –
skip (bool | None) –
success (bool | None) –
start_time (datetime | None) –
end_time (datetime | None) –
snapshot_start (Dict | None) –
snapshot_end (Dict | None) –
exit_code (int | None) –
run_hostname (str | None) –
Methods
Initialise a StoreEAR from persistent store EAR data
Prepare store EAR data for the persistent store.
Prepare data for the user-facing ElementActionRun object.
Return a shallow copy, with specified data updated.
Attributes
- classmethod decode(EAR_dat, ts_fmt)#
Initialise a StoreEAR from persistent store EAR data
- encode(ts_fmt)#
Prepare store EAR data for the persistent store.
- update(submission_idx=None, skip=None, success=None, start_time=None, end_time=None, snapshot_start=None, snapshot_end=None, exit_code=None, run_hostname=None)#
Return a shallow copy, with specified data updated.