I have a Fusion Scenario where the 1st module I invoke a HTTP Rest API.
The API has a property named "status" - that can take either of the 2 values below
1. Processing
2. Complete
I would like my scenario process further *only if* the status is complete. If the status
is in processing state - The scenario should wait and retry after 60 seconds.
Can anyone suggest me the ways to achieve this ?
Thanks
Harish
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
I have created an outline for you to follow and insert your information as needed.
1. Set variable "breakLoop" to "False"
2. Create Blank Array in Iterator, number of values is number of retries
3. Get variable "breakLoop"
3.5. Filter bundles with breakLoop == True
4. HTTP Request
5. Router between request == success (do stuff, bottom path) and request == bad (sleep, top path, fallback route)
6. If success, set "breakLoop" to True
Outline.
Add Empty Array.
Set breakLoop to True
I have created an outline for you to follow and insert your information as needed.
1. Set variable "breakLoop" to "False"
2. Create Blank Array in Iterator, number of values is number of retries
3. Get variable "breakLoop"
3.5. Filter bundles with breakLoop == True
4. HTTP Request
5. Router between request == success (do stuff, bottom path) and request == bad (sleep, top path, fallback route)
6. If success, set "breakLoop" to True
Outline.
Add Empty Array.
Set breakLoop to True
A thought: You don't need to create an array and iterate, I think; you could use a Repeater module and set its "repetitions" to 10 or 15.
Of course if the API sends a stats code other than 200 you can use the Break error handler to retry that step after # seconds N times
Hello @Sven-iX ,
I added retry logic for handling 504 errors with a break set for 3 retries, but the break step is only executing once instead of running all three retries.
Could you please provide any suggestions here.
Thanks in Advance!
Views
Replies
Total Likes
Try setting the number of retries higher. My excel modules use this break logic and I have them set to 5 times at 1 minute intervals and they never fail anymore.
Views
Replies
Total Likes
Hello @Lawson02
Thanks for quick response!
I tried with 5 still same. Could you please share screenshot of your flow if possible ?
Views
Replies
Total Likes
@Lawson02 My bad! it was running fine but I'm not checking in Incomplete executions
Views
Replies
Total Likes