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:
__init__(storage_factory: StorageFactory, run_id: str) None#
Parameters:
Return type:

None

Methods

__init__(storage_factory, run_id)

from_task_run_config(task_config)

Attributes

storage_factory

A StorageFactory instance configured with workflow tokens

run_id

The run ID of the workflow currently being executed.