floatcsep.utils.Task

class floatcsep.utils.Task(instance, method, **kwargs)[source]
__init__(instance, method, **kwargs)[source]

Base node of the workload distribution. Wraps lazily objects, methods and their arguments for them to be executed later. For instance, can wrap a floatcsep.Model, its method ‘create_forecast’ and the argument ‘time_window’, which can be executed later with Task.call() when, for example, task dependencies (parent nodes) have been completed.

Parameters:
  • instance – can be floatcsep.Experiment, floatcsep.Model, floatcsep.Evaluation

  • method – the instance’s method to be lazily created

  • **kwargs – keyword arguments passed to method.

Methods

__init__(instance, method, **kwargs)

Base node of the workload distribution.

check_exist()

run()

sign_match([obj, met, kw_arg])

Checks if the Task matchs a given signature for simplicity.