22#include "ores.nats/service/client.hpp"
23#include "ores.scheduler.core/service/action_handler.hpp"
25namespace ores::scheduler::service {
40 [[nodiscard]] std::string_view
action_type() const noexcept
override {
41 return "nats_publish";
44 boost::asio::awaitable<std::expected<void, std::string>>
NATS client: connection, pub/sub, request/reply, and JetStream.
Definition client.hpp:73
Context passed to each action handler on job firing.
Definition action_handler.hpp:33
Abstract interface for job action execution.
Definition action_handler.hpp:44
Fires a NATS publish on each job firing.
Definition nats_publish_action_handler.hpp:36
boost::asio::awaitable< std::expected< void, std::string > > execute(const action_context &ctx) override
Execute the action for the given job.
Definition nats_publish_action_handler.cpp:59
std::string_view action_type() const noexcept override
Returns the action_type string handled by this implementation.
Definition nats_publish_action_handler.hpp:40