Is there a way to ensure all messages are published before shutting down a node?

asked 2022-11-01 10:22:37 -0500

Pinknoise2077 gravatar image

I want to make sure all pending messages are sent before shutting down a node. I am thinking that a clean way would be to check that all publisher queues are empty before shutting down the node. Is that possible? If not, is there another way to achieve the same outcome?

edit retag flag offensive close merge delete

Comments

I don't believe this is supported. There is no top-level API AFAIK for this, and the queues you refer to are not publicly accessible I believe (it's probably possible to reach the publications, but I don't believe there is public API to retrieve the status of the queue(s)). That doesn't mean it's absolutely impossible. Just that I wouldn't know of an easy or documented way to do this.

gvdhoorn gravatar image gvdhoorn  ( 2022-11-01 13:47:15 -0500 )edit