selinon.task module

A task representation from YAML config file.

class selinon.task.Task(name, import_path, storage, **opts)[source]

Bases: selinon.node.Node

A task representation within the system.

check()[source]

Check task definitions for errors.

Raises:ValueError if an error occurred
static from_dict(dictionary, system)[source]

Construct task from a dict and check task’s definition correctness.

Parameters:
  • dictionary (dict) – dictionary to be used to construct the task
  • system (System) – system that should be used to for lookup a storage
Returns:

Task instance

Return type:

selinon.selinon_task.Task

Raises:

ValueError