Get Active Tasks
Get tasks for all tenants.
Returns tasks for all tenants with the following statuses: SCHEDULED
,
PROCESSING
, PAUSING
, PAUSED
,
CANCELING
, WAITING_FOR_RESOURCE
.
Request
GET {ApplicationURL}/tasks
Name | Required | Details |
---|---|---|
max |
No | Positive Integer value to identify the maximum number of tasks to
return in a response. Default is 50 . |
offset |
No | Positive Integer value to identify starting what element in the
result set should be returned in a response. Can be used to organize
pagination in combination with the max parameter.
Default is 0 . |
entityTypes |
No | . String array to filter tasks by
Example:
|
type |
No |
String value to filter tasks by Example: Deprecated: Use |
createdBy |
No |
String value to filter tasks by initiator. Deprecated: Use |
createdSince |
No |
Positive Integer value to filter tasks created since this timestamp. Deprecated: Use |
createdBefore |
No |
Positive Integer value to filter tasks created before this timestamp. Deprecated: Use |
status |
No |
Enum value to filter tasks by status. Available values:
Deprecated: Use |
orderBy |
No | Enum value to sort tasks by the field. Available values:
STATUS , CREATED_BY ,
START_TIME , CREATED_TIME ,
TASK_TYPE . Default is
CREATED_TIME . |
ascending |
No | Boolean value to set sort direction. Default is
false . |
filter |
No | Enables tasks filtering by a condition. Format for filter query parameter:
The Condition types are:
AND and OR conditions. |
Response
An array of active tasks.
[
{
"id":"d37146e6-1b55-46ef-975b-8dfd1248e46e",
"createdTime":1440008511759,
"createdBy":"User",
"updatedTime":1440008514672,
"updatedBy":"User",
"type":"com.reltio.businesslogic.tasks.reindex.ReindexDataTask",
"status":"PROCESSING",
"name":"Reindexing of all types in tenant Merill (force)",
"createdOnHost":"api01",
"executedOnHost":"api01",
"startTime":"08-19-2015 22.21",
"parameters":{
"force":"true",
"tenantId":"Merill"
},
"currentState":{
"numberOfProcessedObjects":3,
"maxQueueSize":1,
"entityType":"all types",
"status":"Completed"
},
"throughput":0,
"duration":"0s"
}
]