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

An abstract job template within a compute batch. More...

#include <workunit.hpp>

Collaboration diagram for workunit:
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 workunit.
 
boost::uuids::uuid batch_id
 FK reference to ores_compute_batches_tbl.
 
boost::uuids::uuid app_version_id
 FK reference to ores_compute_app_versions_tbl.
 
std::string input_uri
 URI pointing to the zipped input data bundle in object storage.
 
std::string config_uri
 URI pointing to the engine config file (ORE XML, Llama JSON, etc.).
 
int priority
 Scheduling priority; higher values are dispatched sooner.
 
int target_redundancy
 Number of independent results required before this workunit is complete.
 
boost::uuids::uuid canonical_result_id
 FK to the validated canonical result; NULL until the Validator accepts a result.
 
std::string modified_by
 Username of the person who last modified this workunit.
 
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

An abstract job template within a compute batch.

Defines the problem to be solved: which app version to use, where the input data lives, and how many times to run it for redundancy. The BOINC equivalent of 'workunit'. Does not track execution state — that belongs to results.

Member Data Documentation

◆ change_reason_code

std::string change_reason_code

Code identifying the reason for the change.

References change_reasons table (soft FK).