print user-friendly message if the task cannot be deleted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rally |
Fix Released
|
Low
|
idzzy |
Bug Description
I started the task and it was crashed (For example, I just killed the rally process)
then I am trying to remove the task which has the status "running" in the "rally task list" output
~/rally$ rally task delete 249d1138-
Command failed, please check log for more info
2015-02-12 10:11:43.282 9277 CRITICAL rally [-] TaskInvalidStatus: Task `249d1138-
2015-02-12 10:11:43.282 9277 TRACE rally Traceback (most recent call last):
2015-02-12 10:11:43.282 9277 TRACE rally File "/usr/local/
...
2015-02-12 10:11:43.282 9277 TRACE rally actual=task.status)
2015-02-12 10:11:43.282 9277 TRACE rally TaskInvalidStatus: Task `249d1138-
2015-02-12 10:11:43.282 9277 TRACE rally
It would be great to print user-friendly message if the task cannot be deleted. Should Rally advise the user to use --force option?
Changed in rally: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in rally: | |
assignee: | nobody → idzzy (idzzy) |
Changed in rally: | |
milestone: | none → 0.0.2 |
Changed in rally: | |
status: | Fix Committed → Fix Released |
I could reproduce this bug.
How about this? if this modification is fit, I would like to handle this bug.
# rally task list ------- ------- ------- ------- ----+-- ------- ------- -+----- ------- ------- ------- --+---- ------- +------ --+---- -+ ------- ------- ------- ------- ----+-- ------- ------- -+----- ------- ------- ------- --+---- ------- +------ --+---- -+ 4b52-4c85- b332-4728a256c4 a5 | KVHPoc | 2015-02-15 14:17:38.930293 | running | False | | ------- ------- ------- ------- ----+-- ------- ------- -+----- ------- ------- ------- --+---- ------- +------ --+---- -+
+------
| uuid | deployment_name | created_at | status | failed | tag |
+------
| 43551ec8-
+------
# rally task delete 43551ec8- 4b52-4c85- b332-4728a256c4 a5 4b52-4c85- b332-4728a256c4 a5` in `running` status but `finished` is required.
Task `43551ec8-
Use --force option to delete the task with vague state.