22#include "ores.scheduler.core/service/action_handler.hpp"
24namespace ores::scheduler::service {
34 [[nodiscard]] std::string_view
action_type() const noexcept
override {
35 return "send_mq_message";
38 boost::asio::awaitable<std::expected<void, std::string>>
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
Sends a message to an MQ queue on each job firing.
Definition mq_action_handler.hpp:32
boost::asio::awaitable< std::expected< void, std::string > > execute(const action_context &ctx) override
Execute the action for the given job.
Definition mq_action_handler.cpp:54
std::string_view action_type() const noexcept override
Returns the action_type string handled by this implementation.
Definition mq_action_handler.hpp:34