Skip to content

Commit 4df175d

Browse files
author
Nissan Pow
committed
fix: increase timeout_enforce_flow timeout to 60s for k8s minimum
Kubernetes requires @timeout to be at least 60 seconds. The test used 5s which fails at deploy time on argo/sfn with "The timeout for step slow should be at least 60 seconds for execution on Kubernetes."
1 parent 23903a9 commit 4df175d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

test/ux/core/flows/basic/timeout_enforce_flow.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ class TimeoutEnforceFlow(FlowSpec):
1111
def start(self):
1212
self.next(self.slow)
1313

14-
@timeout(seconds=5)
14+
@timeout(seconds=60)
1515
@step
1616
def slow(self):
17-
# Sleep well beyond the 5-second timeout to guarantee enforcement.
18-
time.sleep(120)
17+
# Sleep well beyond the 60-second timeout to guarantee enforcement.
18+
# Kubernetes requires at least 60s for @timeout.
19+
time.sleep(300)
1920
self.next(self.end)
2021

2122
@step

0 commit comments

Comments
 (0)