hpcflow.sdk.persistence.base.StoreTask#
- class hpcflow.sdk.persistence.base.StoreTask(id_: 'int', index: 'int', is_pending: 'bool', element_IDs: 'List[int]', task_template: 'Optional[Dict]' = None)#
Bases:
object
Methods
Return a copy, with additional element IDs.
Initialise a StoreTask from store task data
Prepare store task data for the persistent store.
Attributes
- 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.