pacmanweb.tasks#

Celery task that runs PACMan.

Classes#

PACManTask

Task base class.

Functions#

pacman_task(self[, options])

Execute PACMan task.

Module Contents#

class pacmanweb.tasks.PACManTask#

Bases: celery.Task

Task base class.

Note:

When called tasks apply the run() method. This method must be defined by all tasks (that is unless the __call__() method is overridden).

on_failure(exc, task_id, args, kwargs, einfo)#

Handle task failure.

pacmanweb.tasks.pacman_task(self, options={})#

Execute PACMan task.

Parameters#

optionsdict, optional

Options for running PACMan.

Returns#

dict

Output of the PACMan run.