pctasks.task.task.TaskContext#
- class pctasks.task.task.TaskContext(storage_factory: StorageFactory, run_id: str)#
Context that is passed into Task run methods.
This class is used to supply the Task with the necessary framework components to run.
- Parameters:
storage_factory (StorageFactory) –
run_id (str) –
- __init__(storage_factory: StorageFactory, run_id: str) None#
- Parameters:
storage_factory (StorageFactory) –
run_id (str) –
- Return type:
None
Methods
__init__(storage_factory, run_id)from_task_run_config(task_config)Attributes
storage_factoryA StorageFactory instance configured with workflow tokens
run_idThe run ID of the workflow currently being executed.