C-Echo in Lua routing script

I use the one line script example provided in the book to route new instances to a modality and delete it. But if the modality is down at the moment of instance storage it’s simply deleted and I have to resend it from original machine again. What could I add to the script to make it echo the modality first, and on positive send+delete, while on negative wait a minute and try again? Is it even possible?

Hi,

You can probably get some inspiration from this robust lua forwarder.

HTH,

Alain