vip.pubsub.publish method does not timeout

╄→гoц情女王★ 提交于 2019-12-12 04:25:35

问题


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

来源:https://stackoverflow.com/questions/41903081/vip-pubsub-publish-method-does-not-timeout

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!