Skip to content
This repository was archived by the owner on Apr 12, 2018. It is now read-only.

Commit 24b7f8b

Browse files
author
Oleiade
committed
Update WorkflowExecution model and qs to provide close_status
1 parent b1b88de commit 24b7f8b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

swf/models/workflow.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ class WorkflowExecution(BaseModel):
316316
'status',
317317
'task_list',
318318
'child_policy',
319+
'close_status',
319320
'execution_timeout',
320321
'input',
321322
'tag_list',
@@ -325,16 +326,17 @@ class WorkflowExecution(BaseModel):
325326
def __init__(self, domain,
326327
workflow_id, run_id=None,
327328
status=STATUS_OPEN, task_list=None,
328-
child_policy=None, execution_timeout=None,
329-
input=None, tag_list=None,
330-
decision_tasks_timeout=None, *args, **kwargs):
331-
329+
child_policy=None, close_status=None,
330+
execution_timeout=None, input=None,
331+
tag_list=None, decision_tasks_timeout=None,
332+
*args, **kwargs):
332333
self.domain = domain
333334
self.workflow_id = workflow_id
334335
self.run_id = run_id
335336
self.status = status
336337
self.task_list = task_list
337338
self.child_policy = child_policy
339+
self.close_status = close_status
338340
self.execution_timeout = execution_timeout
339341
self.input = input
340342
self.tag_list = tag_list or []

swf/querysets/workflow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ def to_WorkflowExecution(self, domain, execution_info, **kwargs):
435435
get_subkey(execution_info, ['execution', 'workflowId']), # workflow_id
436436
run_id=get_subkey(execution_info, ['execution', 'runId']),
437437
status=execution_info.get('executionStatus'),
438+
close_status=execution_info.get('closeStatus'),
438439
tag_list=execution_info.get('tagList'),
439440
**kwargs
440441
)

0 commit comments

Comments
 (0)