API calls and handling of Server non available

Hello community,

We have a script running inside a process.

The script call an external API, but sometimes it fails because the external server is unavailable.

What's a good approach to handle such situations?

I have found this in the forum, would it be ok?

I don't quite get the 'Wait mode on error', does it block the entire DBQueue?

Many thanks for your help!

  • It is not the complete DB Queue that is blocked. Only the calculations for the base object of the process chain will be postponed.

    You have two options here. Option one is to build some retry logic into your script. Option two is to use the wait mode in combination with the number of retries and latency (min).