We have an IBM AS400 system that I make API calls to in certain project scripts. In the event the 400 is down, I will get a Timeout Exception
. Some of these function calls I want to buffer and retry once the connection is re-established. What's the best way to handle this? I've started experimenting with a Java LinkedBlockingQueue
. My question is what's the idiomatic way to capture the function call for retry.
1 Like
I don't think there is one. Just careful use of try: except:
to capture the error and place the function call parameters into another queue.
1 Like