20#ifndef ORES_COMPUTE_MESSAGING_WORK_PROTOCOL_HPP
21#define ORES_COMPUTE_MESSAGING_WORK_PROTOCOL_HPP
26namespace ores::compute::messaging {
28struct pull_work_request {
29 using response_type =
struct pull_work_response;
30 static constexpr std::string_view nats_subject =
31 "compute.v1.work.pull";
35struct pull_work_response {
37 std::string result_id;
38 std::string workunit_id;
39 std::string app_version_id;
40 std::string input_uri;
41 std::string config_uri;
54 std::string result_id;
55 std::string workunit_id;
56 std::string app_version_id;
57 std::string package_uri;
58 std::string input_uri;
59 std::string config_uri;
60 std::string output_uri;
63struct heartbeat_message {
64 static constexpr std::string_view nats_subject =
65 "compute.v1.work.heartbeat";
69struct reap_work_message {
70 static constexpr std::string_view nats_subject =
71 "compute.v1.work.reap";
Payload published to the COMPUTE JetStream stream on workunit dispatch.
Definition work_protocol.hpp:53