selinon.selective_run_function module¶
Function that is run on selective flow/task run.
-
class
selinon.selective_run_function.
SelectiveRunFunction
(name, import_path)[source]¶ Bases:
object
Function that is run on selective flow/task run to ensure whether task/flow should be run.
-
static
construct_import_name
(name, import_path)[source]¶ Construct import name that will be used in generated config.
Parameters: - name – name of the function that will be imported
- import_path – import that should be used to import function
Returns: string representation of function that will be used in generated config
-
classmethod
from_dict
(dict_)[source]¶ Instantiate selective run function based on definition in a dictionary.
Returns: selective run function that will be used based on configuration Return type: SelectiveRunFunction
-
static