Package ganeti :: Module workerpool :: Class DeferTask
[hide private]
[frames] | no frames]

Class DeferTask

source code


Special exception class to defer a task.

This class can be raised by BaseWorker.RunTask to defer the execution of a task. Optionally, the priority of the task can be changed.

Instance Methods [hide private]
 
__init__(self, priority=None)
Initializes this class.
source code

Inherited from exceptions.Exception: __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __repr__, __setattr__, __setstate__, __str__, __unicode__

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__

Method Details [hide private]

__init__(self, priority=None)
(Constructor)

source code 

Initializes this class.

Parameters:
  • priority (number) - New task priority (None means no change)
Overrides: object.__init__