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
classmethod get_default()[source]

Get default selective run function.

Returns:default instance that will be used if user did not provided configuration
get_import_name()[source]

Get import name that will be used in generated config.

Returns:string representation of function that will be used in generated config