pub struct Execution {Show 17 fields
pub state: ExecutionState,
pub id: ExecutionId,
pub key: Option<ReuseKey>,
pub fingerprint: Option<Fingerprint>,
pub fingerprints: BTreeMap<ArtifactName, Fingerprint>,
pub artifact_kinds: BTreeMap<ArtifactName, ArtifactKind>,
pub eval_def_hash: DefinitionHash,
pub owner: Option<ChildIdentity>,
pub profile: StoredProfile,
pub options: ExecutionOptions,
pub usage: Option<Vec<Attempt>>,
pub provenance: Provenance,
pub started_at: Timestamp,
pub producer: Option<Producer>,
pub reviewer: Option<ReviewerId>,
pub origin: Option<Origin>,
pub manifest: Option<Manifest>,
}Expand description
One execution and, once GREEN or RED with a key, one record of its key’s history. A local Agent execution holds one of its backend’s machine-wide slots while RUNNING.
Fields§
§state: ExecutionState§id: ExecutionId§key: Option<ReuseKey>The reuse key; absent without a fingerprint on every Artifact the eval depends on.
fingerprint: Option<Fingerprint>The target Artifact’s fingerprint.
fingerprints: BTreeMap<ArtifactName, Fingerprint>Each Artifact the key covers, the target included, with its fingerprint.
artifact_kinds: BTreeMap<ArtifactName, ArtifactKind>Kinds of exactly the Artifacts covered by a new-format reuse key.
eval_def_hash: DefinitionHash§owner: Option<ChildIdentity>The local process running this execution; absent for one mirrored from a remote review store, which no local process owns.
profile: StoredProfile§options: ExecutionOptionsHow this result was produced; never part of the key.
usage: Option<Vec<Attempt>>§provenance: Provenance§started_at: Timestamp§producer: Option<Producer>§reviewer: Option<ReviewerId>The Human claimant who submitted this result.
origin: Option<Origin>Set only on executions mirrored from a remote review store.
manifest: Option<Manifest>Implementations§
Source§impl Execution
impl Execution
pub fn status(&self) -> ExecutionStatus
pub fn result(&self) -> Option<&ExecutionResult>
pub fn error(&self) -> Option<&str>
pub fn error_code(&self) -> Option<FailureCode>
pub fn completed_at(&self) -> Option<Timestamp>
Sourcepub fn owner_pid(&self) -> u32
pub fn owner_pid(&self) -> u32
The owning process’s pid, or 0 for a remote-mirrored execution with no local owner:
the owner_pid SQL column and wire field’s sentinel for “no owner”, confined to
this persistence boundary.
Sourcepub fn owner_start_time(&self) -> u64
pub fn owner_start_time(&self) -> u64
The owning process’s start time, or 0 alongside Self::owner_pid’s sentinel.