Include closed execution extra info
Include 'closeStatus' and 'closeTimestamp' when describing SWF workflow execution using 'describe_workflow_execution' Signed-off-by: Laurie O <laurie_opperman@hotmail.com>
This commit is contained in:
parent
1b4d0b7a1d
commit
353ad631f0
2 changed files with 37 additions and 0 deletions
|
|
@ -127,6 +127,10 @@ class WorkflowExecution(BaseModel):
|
|||
"executionInfo": self.to_medium_dict(),
|
||||
"executionConfiguration": {"taskList": {"name": self.task_list}},
|
||||
}
|
||||
# info
|
||||
if self.execution_status == "CLOSED":
|
||||
hsh["executionInfo"]["closeStatus"] = self.close_status
|
||||
hsh["executionInfo"]["closeTimestamp"] = self.close_timestamp
|
||||
# configuration
|
||||
for key in self._configuration_keys:
|
||||
attr = camelcase_to_underscores(key)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue