amoorion.nats.publish

What a method that changes something returned goes out; a failure is only logged.

Publishing never makes a method fail: the post went out, whatever NATS says.

Functions

announce(method, result[, vault])

Publish a method's result, if NATS is on; a failure is only logged.

amoorion.nats.publish.announce(method, result, vault=None)[source]

Publish a method’s result, if NATS is on; a failure is only logged.

Parameters:
  • method (str)

  • result (Any)

  • vault (Vault | None)

Return type:

None