hpcflow.sdk.persistence.json.JsonStoreTask#
- class hpcflow.sdk.persistence.json.JsonStoreTask(id_, index, is_pending, element_IDs, task_template=None)#
Bases:
StoreTask
[TaskMeta
]Persisted task that is serialized using JSON.
Methods
Return a copy, with additional element IDs.
Initialise a StoreTask from store task data
Prepare store task data for the persistent store.
Attributes
Description of the template for the task.
The ID of the task.
The index of the task within its workflow.
Whether the task has changes not yet persisted.
The IDs of elements in the task.
- Parameters:
- append_element_IDs(pend_IDs)#
Return a copy, with additional element IDs.
- classmethod decode(task_dat)#
Initialise a StoreTask from store task data
Note: the task_template is only needed for encoding because it is retrieved as part of the WorkflowTemplate so we don’t need to load it when decoding.
- Parameters:
task_dat (TaskMeta) –
- Return type:
Self
- encode()#
Prepare store task data for the persistent store.