ajenti.plugins.tasks.api¶
-
class
ajenti.plugins.tasks.api.
Task
(**kwargs)[source]¶ Base class for custom tasks
Parameters: - name – display name
- ui – full layout name for parameter editor, will be bound to parameter dictionary (so begin it with <bind:dict bind=”params”>)
- hidden – if True, task won’t be available for manual creation
-
name
= '---'¶
-
run
(**kwargs)[source]¶ Override with your task actions here. Raise
TaskError
in case of emergency. Check aborted often and return if it’s True
-
ui
= None¶