pub struct WorkItem {Show 22 fields
pub id: String,
pub run_id: RunId,
pub tenant_id: TenantId,
pub subject_id: SubjectId,
pub spec_id: String,
pub definition_id: String,
pub workflow_revision: u64,
pub workflow_revision_digest: String,
pub execution_profile_id: String,
pub execution_profile_revision: u64,
pub execution_profile_digest: String,
pub kernel_abi_version: String,
pub capability_pins: Vec<CapabilityPin>,
pub lifecycle: LifecyclePolicy,
pub scheduled_at: DateTime<Utc>,
pub claimed_at: DateTime<Utc>,
pub config: Value,
pub state_version: i64,
pub control_epochs: ControlEpochs,
pub cancel_requested: bool,
pub lease_version: i64,
pub wakeups: Vec<Wakeup>,
}Expand description
One claimed instance with everything a driver needs to evaluate it.
Fields§
§id: StringStable identifier of this record.
run_id: RunIdRun this record belongs to.
tenant_id: TenantIdTenant that owns this record.
subject_id: SubjectIdSubject (user or service principal) acting on or owning this record.
spec_id: StringWorkflow spec identifier.
definition_id: StringWorkflow definition this record belongs to.
workflow_revision: u64Pinned workflow revision.
workflow_revision_digest: StringDigest of the pinned revision.
execution_profile_id: StringPinned execution profile.
execution_profile_revision: u64Pinned execution profile revision.
execution_profile_digest: StringDigest of the pinned profile.
kernel_abi_version: StringKernel ABI the revision pinned.
capability_pins: Vec<CapabilityPin>Capabilities the revision may dispatch.
lifecycle: LifecyclePolicyCompletion, timeout and catch-up policy pinned by the revision.
scheduled_at: DateTime<Utc>Database timestamps captured by the claim transaction. Scheduling logic never consults an application-host clock.
claimed_at: DateTime<Utc>Database time of the claim.
config: ValueConfiguration object validated against the declared schema.
state_version: i64CAS version the command must be committed against.
control_epochs: ControlEpochsControl epochs at claim time.
cancel_requested: boolWhether cancellation was requested; the terminal commit honours it.
lease_version: i64Fencing token bumped on every lease acquisition; stale holders cannot write.
wakeups: Vec<Wakeup>Due timers and trigger deliveries, oldest first.