What I have:
- wait:
try:
call: sys.sleep
args:
seconds: 5
next: checkWorkflowInvocationStatus
except:
as: e
<alert on an exception here>
The error I get:
parse error: in workflow 'main', step 'wait': unexpected entry 'next'
It works if I remove the try/except. Can next and try really not work together?
As per testing and replication, I've managed to fix it by aligning
next: checkWorkflowInvocationStatuswithtry:instead ofargs:. My code looks like this:Or you may keep the same format and add a name for
call: sys.sleep, e.g.,sleepStep:. The code should look like this: