- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2022 01:52 PM
How can we know that if recipe function called from a parent function is completed all it's job? Is there any trigger we can use to see if recipe function has completed all jobs so we can trigger an email like all jobs are completed.
If somebody has done it, please let us know.
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2023 11:52 AM
This is old thread but interesting one. Here's how I would solve this issue this today:
Context: You have parent recipe calling child recipes (async) so it wont return data from child. You want to know if all the child calls have been completed.
I believe RecipeOps Connector by workato can help writing optimized recipe for this. (heres the api i would recommend https://docs.workato.com/connectors/recipeops/actions/search-job-history.html#recipeops-search-job-h...)
One solution could be in line of having a scheduled job to check failed, pending jobs and using "Calling job ID" attribute to understand whats completed. You can maintain some state of Parent Job Ids in Lookup Table for quick access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2022 02:00 PM
You can use return response from the child recipe. to know the status or output of the child recipe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2022 02:02 PM
There are two types of calls to recipe function, if you call it synchronously then it means that the function has completed executing all steps. So any awaiting actions can follow in your parent recipe (or any other function)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2022 02:04 PM
Due to 90 minutes timeout limitation, we need to call async recipe function so can't return output from child recipe to parent one
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2022 02:14 PM
U can create a new recipe to fetch the error details...the trigger part is Recipe ops and you can pass the child recipe I'd in the trigger

