OLAP REST Commands : Task Status Command

Task Status Command
Doradus OLAP applications use background tasks to perform data aging. These tasks execute automatically at their defined frequency. On multi-node clusters, Doradus ensures that each data-aging 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="Msgs/Message/data-aging">
<Executor>127.0.0.1</Executor>
<FinishTime>2015-02-11 14:12:32</FinishTime>
<StartTime>2015-02-11 14:12:32</StartTime>
<Status>Completed</Status>
</task>
<task name="OLAPEvents/*/data-aging">
<Executor>127.0.0.1</Executor>
<FinishTime>2015-02-11 14:11:31</FinishTime>
<StartTime>2015-02-11 14:11:31</StartTime>
<Status>Completed</Status>
</task>
<task name="Email/*/data-aging">
<Executor>127.0.0.1</Executor>
<FinishTime>2015-02-11 14:12:33</FinishTime>
<StartTime>2015-02-11 14:12:33</StartTime>
<Status>Completed</Status>
</task>
</tasks>
In JSON:
{"tasks": {
"Msgs/Message/data-aging": {
"Executor": "127.0.0.1",
"FinishTime": "2015-02-11 14:12:32",
"StartTime": "2015-02-11 14:12:32",
"Status": "Completed"
},
"OLAPEvents/*/data-aging": {
"Executor": "127.0.0.1",
"FinishTime": "2015-02-11 14:11:31",
"StartTime": "2015-02-11 14:11:31",
"Status": "Completed"
},
"Email/*/data-aging": {
"Executor": "127.0.0.1",
"FinishTime": "2015-02-11 14:12:33",
"StartTime": "2015-02-11 14:12:33",
"Status":"Completed"
}
}}
The status of each task is listed using the task name <application>/<table>/data-aging. For OLAP applications, the <table> name is “*”. The status, start time, and finish time is shown. The “Executor” is the IP address if the Doradus node that performed the task.