Task queue with threaded dispatcher that fires off tasks in the order
in which they were enqueued and stores the finished tasks for a specified
amount of time.
|
__init__(self,
max_running=4,
finished_lifetime=timedelta(seconds=3600))
Returns:
FIFOTaskQueue instance |
source code
|
|
|
_dispatch(self)
Scheduling method that that executes the scheduling hooks. |
source code
|
|
|
_get_tasks(self)
Get the next 'n' tasks to run, where is max - currently running tasks |
source code
|
|
|
_cancel_tasks(self)
Stop any tasks that have been flagged as canceled. |
source code
|
|
|
_timeout_tasks(self)
Stop tasks that have met or exceeded their timeout length. |
source code
|
|
|
_cull_tasks(self)
Clean up finished task data |
source code
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|
|
exists(self,
task,
criteria,
include_finished=True)
Returns whether or not the given task exists in this queue. |
source code
|
|