Update completed tasks status to "finished"

After successfully finishing a benchmark task, Rally does not update its
status from "test_tool->benchmarking" to "finished". As a result, these
tasks get incorrectly stored in the database with the "test_tool->benchmarking"
status, which prevents them from being deleted according to user's requests.

The patch also adds the "failed" task status and sets this status in
case of an error occuring in the test engine 'with' block.

Closes-Bug: #1255980
Blueprint independent-deploy

Change-Id: I5088f24feb35459d850ae054a62a0544b765ba40
This commit is contained in:
Mikhail Dubov 2013-11-28 17:39:49 +04:00
parent 11b7b7950b
commit 72dc968ca3

View File

@ -28,6 +28,7 @@ class _TaskStatus(utils.ImmutableMixin, utils.EnumMixin):
INIT = 'init'
CLEANUP = 'cleanup'
FINISHED = 'finished'
FAILED = 'failed'
TEST_TOOL_PATCHING_OPENSTACK = 'test_tool->patching_openstack'
TEST_TOOL_VERIFY_OPENSTACK = 'test_tool->verify_openstack'