20#ifndef ORES_COMPUTE_MESSAGING_WORKUNIT_PROTOCOL_HPP
21#define ORES_COMPUTE_MESSAGING_WORKUNIT_PROTOCOL_HPP
26#include "ores.compute.api/domain/workunit.hpp"
28namespace ores::compute::messaging {
30struct list_workunits_request {
31 using response_type =
struct list_workunits_response;
32 static constexpr std::string_view nats_subject =
33 "compute.v1.workunits.list";
38struct list_workunits_response {
39 std::vector<ores::compute::domain::workunit> workunits;
40 int total_available_count = 0;
43struct save_workunit_request {
44 using response_type =
struct save_workunit_response;
45 static constexpr std::string_view nats_subject =
46 "compute.v1.workunits.save";
48 std::string change_reason_code;
49 std::string change_commentary;
52struct save_workunit_response {
An abstract job template within a compute batch.
Definition workunit.hpp:36