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

Persistent plan for an in-process scheduled job. More...

#include <job_definition.hpp>

Collaboration diagram for job_definition:
Collaboration graph

Public Attributes

boost::uuids::uuid id
 UUID primary key for the job definition.
 
std::optional< boost::uuids::uuid > tenant_id
 Tenant identifier for multi-tenancy isolation. Null for system jobs.
 
std::optional< boost::uuids::uuid > party_id
 Party that owns this job definition. Null for system jobs.
 
std::string job_name
 Unique name for this job.
 
std::string description
 Human-readable label for UI.
 
std::string command
 SQL command to execute.
 
cron_expression schedule_expression
 Validated cron expression.
 
std::string action_type = "execute_sql"
 Type of action to execute on each firing.
 
std::string action_payload = "{}"
 JSON payload for the action. For send_mq_message: {"queue_id":"<uuid>","message_type":"<str>","payload":{}}.
 
bool is_active = false
 False = paused (not scheduled).
 
int version = 0
 Version number for optimistic locking and change tracking.
 
std::string modified_by
 Username of the person who last modified this job definition.
 
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

Persistent plan for an in-process scheduled job.

Represents a single scheduled task managed by the OreStudio in-process scheduler. Tracks the job name, cron expression, SQL command or MQ message payload, and active state.

Member Data Documentation

◆ change_reason_code

std::string change_reason_code

Code identifying the reason for the change.

References change_reasons table (soft FK).