cancel
Showing results for 
Search instead for 
Did you mean: 

Workato 'Wait for async calls to complete' action getting stuck in processing

dawidleman
Deputy Chef II
Deputy Chef II

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:image.png

 

 

image.png

image.png

Here's the implementation in the parent process:image.png

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):

image.png

That's definitely a 1min timeout not working.

Does anyone had similar issues and came up with a solution for that?

Thanks  

1 ACCEPTED SOLUTION

rajeshjanapati
Deputy Chef III
Deputy Chef III

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...!

View solution in original post

4 REPLIES 4

rajeshjanapati
Deputy Chef III
Deputy Chef III

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...!

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?

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.

brettsherwood
Deputy Chef I
Deputy Chef I

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...