REST Commands : Task Status Command

Task Status Command
Doradus Logging uses background tasks to perform data aging and batch merging. These tasks execute automatically at their defined frequency. On multi-node clusters, Doradus ensures that each task is executed by only a single node at each scheduled occurrence. The following REST command is available to list the status of all known tasks:
GET /_tasks
This command returns a response such as the following:
<tasks>
<task name="LogDepot/*/logs-merging">
<Status>Completed</Status>
<Executor>10.1.161.79</Executor>
<FinishTime>2015-09-04 14:59:46</FinishTime>
<StartTime>2015-09-04 14:59:46</StartTime>
</task>
<task name="LogDepot/*/logs-aging">
<Status>Completed</Status>
<Executor>192.168.1.12</Executor>
<FinishTime>2015-09-03 15:48:57</FinishTime>
<StartTime>2015-09-03 15:48:57</StartTime>
</task>
</tasks>
In JSON:
{"tasks": {
LogDepot/*/logs-merging": {
"Status": "Completed",
"Executor": "10.1.161.79",
"FinishTime": "2015-09-04 14:59:46",
"StartTime": "2015-09-04 14:59:46"
},
LogDepot/*/logs-aging": {
"Status": "Completed",
"Executor": "192.168.1.12",
"FinishTime": "2015-09-03 15:48:57",
"StartTime": "2015-09-03 15:48:57"
}
}}
The status of each task is listed using the task name <application>/*/data-aging. The status, start time, and finish time is shown. The Executor is the IP address if the Doradus node that performed the task.