The page you navigated to does not exist, so we brought you to the closest page to it.
flytekit.core.class_based_resolver
flytekit.core.class_based_resolver
Stores tasks inside a class variable. The class must be inherited from at the point of usage because the task
loading process basically relies on the same sequence of things happening.
class ClassStorageTaskResolver (
args ,
kwargs ,
)
Parameter
Type
Description
args
*args
kwargs
**kwargs
Property
Type
Description
instantiated_in
None
lhs
None
location
None
Method
Description
add()
find_lhs()
get_all_tasks()
Future proof method.
load_task()
Given the set of identifier keys, should return one Python Task or raise an error if not found.
loader_args()
This is responsible for turning an instance of a task into args that the load_task function can reconstitute.
name()
task_name()
Overridable function that can optionally return a custom name for a given task.
def add (
t : flytekit . core . python_auto_container . PythonAutoContainerTask ,
)
Parameter
Type
Description
t
flytekit.core.python_auto_container.PythonAutoContainerTask
Future proof method. Just making it easy to access all tasks (Not required today as we auto register them)
def load_task (
loader_args : typing . List [ str ],
) -> flytekit . core . python_auto_container . PythonAutoContainerTask
Given the set of identifier keys, should return one Python Task or raise an error if not found
Parameter
Type
Description
loader_args
typing.List[str]
def loader_args (
settings : flytekit . configuration . SerializationSettings ,
t : flytekit . core . python_auto_container . PythonAutoContainerTask ,
) -> typing . List [ str ]
This is responsible for turning an instance of a task into args that the load_task function can reconstitute.
Parameter
Type
Description
settings
flytekit.configuration.SerializationSettings
t
flytekit.core.python_auto_container.PythonAutoContainerTask
def task_name (
t : flytekit . core . base_task . Task ,
) -> typing . Optional [ str ]
Overridable function that can optionally return a custom name for a given task
Parameter
Type
Description
t
flytekit.core.base_task.Task