Add started_at and finished_at to task execution.

Sometimes it is very important to know exact time of task execution, but using fields
created_at and updated_at is incorrect, because in this case duration will consist
of not only Running time.
That new fields solve this problem.

Change-Id: I15be0648a0346f5b3dc9ef4a1b330a6c0e818385
Implements: blueprint mistral-add-started-finished-at
Signed-off-by: Oleg Ovcharuk <vgvoleg@gmail.com>
This commit is contained in:
Oleg Ovcharuk
2018-10-03 23:30:48 +03:00
parent c9e08a8839
commit ea7fa0e4a6
9 changed files with 272 additions and 6 deletions

View File

@@ -144,7 +144,8 @@ class WorkflowController(object):
return []
cmds = [
commands.RunExistingTask(self.wf_ex, self.wf_spec, t_e, reset)
commands.RunExistingTask(self.wf_ex, self.wf_spec, t_e, reset,
rerun=True)
for t_e in task_execs
]