Extend task and workflow notification data

Change-Id: I93c1e9ed166847aea07531f98a9924a728efbab3
Signed-off-by: Oleg Ovcharuk <vgvoleg@gmail.com>
This commit is contained in:
Oleg Ovcharuk 2020-02-06 14:09:05 +03:00 committed by Renat Akhmerov
parent 99e004b3d6
commit 95d9f899db
2 changed files with 9 additions and 2 deletions

View File

@ -101,7 +101,11 @@ class Task(object):
"state": self.task_ex.state,
"state_info": self.task_ex.state_info,
"type": self.task_ex.type,
"project_id": self.task_ex.project_id
"project_id": self.task_ex.project_id,
"created_at": utils.datetime_to_str(self.task_ex.created_at),
"updated_at": utils.datetime_to_str(self.task_ex.updated_at),
"started_at": utils.datetime_to_str(self.task_ex.started_at),
"finished_at": utils.datetime_to_str(self.task_ex.finished_at)
}
def _send_notification():

View File

@ -98,7 +98,10 @@ class Workflow(object):
"state": self.wf_ex.state,
"state_info": self.wf_ex.state_info,
"project_id": self.wf_ex.project_id,
"task_execution_id": self.wf_ex.task_execution_id
"task_execution_id": self.wf_ex.task_execution_id,
"root_execution_id": self.wf_ex.root_execution_id,
"created_at": utils.datetime_to_str(self.wf_ex.created_at),
"updated_at": utils.datetime_to_str(self.wf_ex.updated_at)
}
def _send_notification():