ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | List of all members
result Struct Referencefinal

A specific execution instance of a workunit assigned to a host. More...

#include <result.hpp>

Collaboration diagram for result:
Collaboration graph

Public Attributes

int version = 0
 Version number for optimistic locking and change tracking.
 
utility::uuid::tenant_id tenant_id = utility::uuid::tenant_id::system()
 Tenant identifier for multi-tenancy isolation.
 
boost::uuids::uuid id
 UUID primary key for the result.
 
boost::uuids::uuid workunit_id
 FK reference to ores_compute_workunits_tbl.
 
boost::uuids::uuid host_id
 FK reference to ores_compute_hosts_tbl; NULL until the result is dispatched.
 
std::int64_t pgmq_msg_id
 PGMQ lease pointer; NULL when not actively queued.
 
int server_state
 State machine: 1=Inactive, 2=Unsent, 4=InProgress, 5=Done.
 
int outcome
 Result outcome code: 1=Success, 3=ClientError, 4=NoReply.
 
std::string output_uri
 URI where the wrapper uploaded the zipped output; NULL until completed.
 
std::string error_message
 Human-readable error description from the wrapper; empty on success.
 
std::chrono::system_clock::time_point received_at
 Timestamp when the output was received by the server pool.
 
std::string modified_by
 Username of the person who last modified this compute result.
 
std::string performed_by
 Username of the account that performed this action.
 
std::string change_reason_code
 Code identifying the reason for the change.
 
std::string change_commentary
 Free-text commentary explaining the change.
 
std::chrono::system_clock::time_point recorded_at
 Timestamp when this version of the record was recorded.
 

Detailed Description

A specific execution instance of a workunit assigned to a host.

Bridges the workunit definition and the actual execution on a grid node. Tracks PGMQ lease state, server-side lifecycle (Inactive/Unsent/InProgress/Done), and the location of output data. The BOINC equivalent of 'result'.

Member Data Documentation

◆ change_reason_code

std::string change_reason_code

Code identifying the reason for the change.

References change_reasons table (soft FK).