Add API to get the status of async task 79/26679/9
authorchenjiankun <chenjiankun1@huawei.com>
Wed, 4 Jan 2017 17:41:18 +0000 (17:41 +0000)
committerchenjiankun <chenjiankun1@huawei.com>
Tue, 10 Jan 2017 10:03:24 +0000 (10:03 +0000)
commit63e75aad3b01de4fc20468d5dd9cdb9b15c5e11e
tree9f3600cb443029e0fbcec03c349d1b452dc2f938
parent57011bd0769f54a98b90d489df0f38751ca76c0e
Add API to get the status of async task

JIRA: YARDSTICK-526

Currently there are many API run a task using sub thread.
But we don't know the status of this task.
So we need to offer a API to query the status of this task.

Change-Id: I8d2cc558750bf9270aed4a7abb8bf35d17894d83
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
14 files changed:
api/database/__init__.py
api/database/handler.py [new file with mode: 0644]
api/database/models.py
api/resources/asynctask.py [new file with mode: 0644]
api/resources/env_action.py
api/server.py
api/urls.py
api/views.py
tests/unit/cmd/commands/__init__.py [new file with mode: 0644]
tests/unit/cmd/commands/test_env.py
tests/unit/common/test_httpClient.py
yardstick/cmd/commands/env.py
yardstick/common/constants.py
yardstick/common/httpClient.py