Implement start to close timeout on SWF workflow executions
This commit is contained in:
parent
86973f2b87
commit
f38d23e483
5 changed files with 71 additions and 2 deletions
|
|
@ -394,3 +394,15 @@ def test_terminate():
|
|||
last_event.event_type.should.equal("WorkflowExecutionTerminated")
|
||||
# take default child_policy if not provided (as here)
|
||||
last_event.child_policy.should.equal("ABANDON")
|
||||
|
||||
def test_has_timedout():
|
||||
wfe = make_workflow_execution()
|
||||
wfe.has_timedout().should.equal(False)
|
||||
|
||||
with freeze_time("2015-01-01 12:00:00"):
|
||||
wfe.start()
|
||||
wfe.has_timedout().should.equal(False)
|
||||
|
||||
with freeze_time("2015-01-01 14:01"):
|
||||
# 2 hours timeout reached
|
||||
wfe.has_timedout().should.equal(True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue