I have created a flow that processes inbound audio clips to a service call for a media player. To ensure they all make it, have put a message queue preceding the service call. When the media player goes idle, a trigger state node sends a trigger command to the queue and releases the next message.
The problem I’m facing is that if there’s an API error with the service call that plays the audio, then the idle will never trigger because the player will never play, thereby causing a backup in the queue for subsequent messages.
I have an inject node that clears or resets the queue every 55 minutes, but I’m wondering if I can’t just make a flow that will trigger if the service call experiences an API error. Is that possible?