|
|
|
|
|
dbLocker(dbLock,
func,
*prm,
**kprm)
Grant exclusive DB access while executing the passed function. |
source code
|
|
|
|
|
|
|
|
|
|
_logStatusChange(obj,
message)
auxiliary function |
source code
|
|
|
|
getQueueSize()
Get number of enqueued tasks. |
source code
|
|
|
|
getMaxQueueSize()
Get the maximum allowed number of task the queue can hold. |
source code
|
|
|
|
getTaskInfo(task_id)
Get tuple of Type identifier, Instance identifiers, Instance status and corresponding status string |
source code
|
|
|
|
getTaskIdentifier(task_id)
Get tuple of Type and Instance identifiers. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enqueueTask(type,
identifier,
input,
message='')
Create new task Instance of the given Type using the given
identifier and task inputs and enqueue this task for processing. |
source code
|
|
|
|
reenqueueTask(task_id,
message='')
Re-enqueue an existing task Instance identified by the given DB record ID
and set its status to ACCEPTED. |
source code
|
|
|
|
|
|
|
startTask(task_id,
message='')
Get the inputs of the task Instance identified by the given DB record ID... |
source code
|
|
|
|
_setTaskStatus(task_id,
message,
status)
auxiliary function |
source code
|
|
|
|
|
|
|
stopTaskSuccessIfNotFinished(task_id,
message='')
Set status of task Instance identified by the given DB record ID
to FINISHED if its status has not been set to FINISHED
or FAILED yet. |
source code
|
|
|
|
stopTaskSuccess(task_id,
message='')
Set status of task Instance identified by the given DB record ID to FINISHED. |
source code
|
|
|
|
stopTaskFailure(task_id,
message='')
Set status of task instance identified by the given DB record ID to FAILED. |
source code
|
|
|
|
pauseTask(task_id,
message='')
Set status of task instance identified by the given DB record ID to PAUSED. |
source code
|
|
|
|
resumeTask(task_id,
message='')
Set status of task instance identified by the given DB record ID to RUNNING. |
source code
|
|
|
|
setTaskResponse(task_id,
response,
mimeType='text/xml')
Set response of task Instance identified by the given DB record ID. |
source code
|
|
|
|
|
|
|
getTaskLog(type,
identifier)
Return list of log records sorted by time for the task identified by
the task Type and Instance identifiers. |
source code
|
|
|
|
|
|
|
deleteRetiredTasks()
Find all FINISHED or FAILED task Instances exceeding their retention
time and remove them. |
source code
|
|