How to appy a wait/retry on fusion scenario till a HTTP API module returns a complete status | Community
Skip to main content
New Participant
January 30, 2025

How to appy a wait/retry on fusion scenario till a HTTP API module returns a complete status

  • January 30, 2025
  • 1 reply
  • 1028 views

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

1 reply

Lawson02
New Participant
February 5, 2025

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

 

Sven-iX
New Participant
March 3, 2025

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

New Participant
August 28, 2025

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!