This question was previously asked here,
VIP publish function not timing out when remote platform is dead,
but unfortunately went unanswered.
This gist of the problem is that the vip.pubsub.publish method does not timeout if a remote platform drops off the network.
Specifically, I have an agent that publishes both locally and to several different external platforms. If individual agents drop off the remote platform there is no problem. However, if the entire remote platform drops off the network, the agent will hang when it attempts to publish to that platform. This keeps the agent from publishing locally or to the other remote platforms.
The method I am using to publish is,
master.vip.pubsub.publish('pubsub', topic, headers, message).get(timeout=10)
Is there anything that can be done within the volttron platform to enforce a timeout?
I am using the develop branch