Plugin: aj.plugins.core.api.tasks

class aj.plugins.core.api.tasks.Task(context, *args, **kwargs)[source]

Tasks are one-off child processes with progress reporting. This is a base abstract class.

abort()[source]
name = None

Display name

push(plugin, message)[source]

An interface to aj.plugins.core.api.push.Push usable from inside the task’s process

report_progress(message=None, done=None, total=None)[source]

Updates the task’s process info.

Parameters:
  • message – text message
  • done – number of processed items
  • total – total number of items
run()[source]

Override this with your task’s logic.

send_log_event(method, message, *args, **kwargs)[source]
start()[source]

Starts the task’s process

class aj.plugins.core.api.tasks.TasksService(context)[source]
abort(_id)[source]
format_tasks()[source]
classmethod get(context)
notify(message=None)[source]
remove(_id)[source]
send_update()[source]
start(task)[source]

Comments

comments powered by Disqus