20#ifndef ORES_COMPUTE_SERVICE_RESULT_SERVICE_HPP
21#define ORES_COMPUTE_SERVICE_RESULT_SERVICE_HPP
26#include "ores.logging/make_logger.hpp"
27#include "ores.database/domain/context.hpp"
28#include "ores.compute.api/domain/result.hpp"
29#include "ores.compute.core/repository/result_repository.hpp"
31namespace ores::compute::service {
38 inline static std::string_view logger_name =
39 "ores.compute.service.result_service";
41 [[nodiscard]]
static auto& lg() {
43 static auto instance = make_logger(logger_name);
52 std::vector<domain::result> list();
54 std::optional<domain::result> find(
const std::string&
id);
58 std::vector<domain::result> history(
const std::string&
id);
60 std::vector<domain::result> list_by_workunit(
const std::string& workunit_id);
62 std::vector<domain::result> list_by_state(
int server_state);
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
A specific execution instance of a workunit assigned to a host.
Definition result.hpp:38
Reads and writes compute results to data storage.
Definition result_repository.hpp:35
Service for managing compute results.
Definition result_service.hpp:36
Context for the operations on a postgres database.
Definition context.hpp:47