Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Task Status Commands (Spider)

JoeWinter edited this page Feb 18, 2015 · 5 revisions

[Table of Contents](https://github.com/dell-oss/Doradus/wiki/Spider Databases: Table-of-Contents) | [Previous] (https://github.com/dell-oss/Doradus/wiki/Aggregate-Query-Commands (Spider))
Spider REST Commands: Task Management Commands


Doradus Spider uses 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" } }}

Clone this wiki locally