|
ORE Studio 0.0.4
|
Fires a NATS publish on each job firing. More...
#include <nats_publish_action_handler.hpp>


Public Member Functions | |
| nats_publish_action_handler (ores::nats::service::client &nats) | |
| std::string_view | action_type () const noexcept override |
| Returns the action_type string handled by this implementation. | |
| boost::asio::awaitable< std::expected< void, std::string > > | execute (const action_context &ctx) override |
| Execute the action for the given job. | |
Fires a NATS publish on each job firing.
Handles jobs with action_type == "nats_publish". The action_payload JSON must contain: {"subject":"<nats-subject>"}.
The message body is empty — the subject alone is sufficient to trigger fire-and-forget compute operations such as the stale-result reaper.
|
overridevirtualnoexcept |
Returns the action_type string handled by this implementation.
Implements action_handler.
|
overridevirtual |
Execute the action for the given job.
Implements action_handler.