Add duration to task status. Add tests for reset-attempts.

This commit is contained in:
Brian Wilson
2013-05-21 17:01:08 -04:00
parent 297206f260
commit 1984cfecc1
4 changed files with 121 additions and 19 deletions

View File

@@ -224,6 +224,7 @@ def _get_course_task_log_status(task_id):
'updated': number of attempts that "succeeded"
'total': number of possible subtasks to attempt
'action_name': user-visible verb to use in status messages. Should be past-tense.
'duration_ms': how long the task has (or had) been running.
'task_traceback': optional, returned if task failed and produced a traceback.
'succeeded': on complete tasks, indicates if the task outcome was successful:
did it achieve what it set out to do.