Replies: 2 comments
-
I think what is happening is the after the first message is done at the 1 retry, it is moved onto the next destination connector. Hence, the unexpected variables map with QUEUED status and a counter of 2. I'm wondering how we can explicitly trigger the next destination connector on a returned Response. Can we explicitly trigger the next destination connector on the desired message similar to a new channel to trigger? |
Beta Was this translation helpful? Give feedback.
-
Other than manually coding the retry logic, I am able to get the desired result queueing on failure and returning the appropriate Response at the appropriate time and or retry number. This allows Mirth to retry until ready to return a Response.
|
Beta Was this translation helpful? Give feedback.
-
Does the variable map not persist when moving onto the next destination connector on a successful retry? Does it change if there are other messages on the queue? If so, is there a way to pass the variables map successfully on a successful retry?
I am testing the retries feature for a flaky server that I will be implementing. I built a proof of concept of throwing an exception 3 times and succeeding thereafter. I noticed the variables map was not as expected. For example, The penultimate destination channel variable counter of 4 is updated and saved. I expected the last destination to have that counter available and the previous destination status ERROR. Instead, it is a counter of 2 and previous destination status QUEUED.
The penultimate destination connector ERROR with a counter of 4:
The last destination connect sees the previous destination as QUEUED and a counter of 2:
I expected the last destination connector to show the variables map from the returned ERROR message with a counter of 4. Instead, it shows the previous destination as QUEUED and a counter of 4.
I am using Mirth 4.5.0, JDK 17, and Windows 11 Enterprise.
Possibly related to this:
messages are flagged as 'QUEUED' although an error was thrown by HTTP sender #3554
Beta Was this translation helpful? Give feedback.
All reactions