3 weeks ago
Hi,
Recently we've encountered strange Workato behavior. In a loop, we're calling recipe functions asynchronously, store the job references in a list and outside of the loop we pass that list to the "Wait for async calls to complete" action. We want the recipe to wait for all the child jobs to complete and continue parent processing when all finished.
The weird behavior is that even when all the jobs completed, the parent recipe job is stuck in processing state:
Here's the implementation in the parent process:
What's even more interesting is that if we set the timeout limit to e.g. 1min (line in example) and wait it out, the parent process is still stuck in processing. Here's the screenshot from yesterday right after I canceled the execution (look at the duration time):
That's definitely a 1min timeout not working.
Does anyone had similar issues and came up with a solution for that?
Thanks
Solved! Go to Solution.
3 weeks ago
Hi @dawidleman,
I guess you are running the recipe using a test job, right?
Could you please try starting the recipe in normal mode (not in test mode) and check it again? Let me know if you still face the same issue after that.
Thank you...!
3 weeks ago
Hi @dawidleman,
I guess you are running the recipe using a test job, right?
Could you please try starting the recipe in normal mode (not in test mode) and check it again? Let me know if you still face the same issue after that.
Thank you...!
3 weeks ago
Indeed, I was testing it with test job. Activating the recipe and waiting for normal mode helped - now it's running properly.
Any reason why it's not working in a test mode?
3 weeks ago
Yes, because waiting actions are long actions in Worakto, where those will not work in Test Mode, like Scheduler in action step, SQL Transformations by workato, etc., those will not work in TEST MODE.
3 weeks ago
From the docs: https://docs.workato.com/en/recipes/testing.html
---
CANNOT RUN LONG ACTIONS IN TEST MODE
Long actions require dedicated workers to periodically check if the action is complete. This is not available in test mode. Testing a recipe that contains a long action may cause the job to stall in the Processing status.
---
Can definitely be frustrating at times to deal with...