pub enum Event {
Show 21 variants
JobQueued {
job: JobSummary,
},
JobStarted {
job: JobSummary,
},
JobStep {
job: u64,
step: Step,
},
JobFinished {
job: JobSummary,
},
SlotChanged {
profile: String,
slot: SlotStatus,
},
ProfileChanged {
profile: ProfileStatus,
},
ProfileRemoved {
profile: String,
},
BudgetChanged {
budget: Budget,
},
RepositoryChanged {
repository: RepositoryStatus,
},
RepositoryRemoved {
repository: String,
},
CacheReseeded {
profile: String,
output: String,
error: Option<String>,
},
RecordCreated {
record: Record,
},
RecordDeleted {
job: u64,
removed_by: RecordRemoval,
},
RecordGone {
job: u64,
},
RecordSkipped {
job: u64,
},
SizingChanged {
change: SizingChange,
},
RunnerFailed {
failure: RunnerFailure,
},
JobSample {
job: u64,
sample: Sample,
},
HostSample {
sample: HostSample,
},
AttentionChanged {
instance: String,
revision: u64,
},
LogLine {
job: u64,
line: u64,
text: String,
},
}Expand description
Everything that happens, tagged by type.
Variants§
JobQueued
A job that runners of this daemon may run was queued.
Fields
job: JobSummaryThe job.
JobStarted
A runner of this daemon took the job.
Fields
job: JobSummaryThe job.
JobStep
A step of a running job started or completed.
JobFinished
The job’s record is final: it completed and its runner was removed, it was lost, or it ran elsewhere. One closed because GitHub stopped answering for it is taken back if a runner here then takes it (ADR 0109).
Fields
job: JobSummaryThe job.
SlotChanged
A slot’s runner started, took a job, or was removed.
ProfileChanged
The daemon started or a reload added the profile, a reload changed its image, CPUs, memory or slots, or it
started or stopped reseeding. A slot’s runner changing is slot.changed only; this event carries every slot as it is now, so a
client can replace the whole profile.
Fields
profile: ProfileStatusThe profile as it is now.
ProfileRemoved
A reload removed the profile and its last runner and reseed are gone.
BudgetChanged
The memory caps in use changed.
RepositoryChanged
A repository was paused or resumed, its queue changed, a reload changed its profile or labels, or a reload added it.
Fields
repository: RepositoryStatusThe repository as it is now.
RepositoryRemoved
A reload removed the repository from the config.
CacheReseeded
A profile’s snapshot check finished.
Fields
RecordCreated
A failed job’s runner was kept as a record.
RecordDeleted
A record was removed.
RecordGone
A record’s image was found gone from Docker, removed outside runnerd (ADR 0135): the job’s record mark is now
removed, and its note’s gone_at says when runnerd found it. When and why it went are not known.
RecordSkipped
A failed job’s record was not made (ADR 0135): the job’s record mark is now skipped. Its page says why.
SizingChanged
Auto sizing wrote a profile’s new memory and slots into the config, and the daemon runs with them.
Fields
change: SizingChangeThe change.
RunnerFailed
A runner could not be registered or started, and its repository gets no runner for a while: once, until one of its runners takes a job again.
Fields
failure: RunnerFailureWhat failed.
JobSample
Live: a running job’s container was sampled.
HostSample
Live: the slice runners run in was sampled.
Fields
sample: HostSampleThe sample.
AttentionChanged
Live: what needs attention changed (ADR 0132); read GET /v1/attention for it. Sent on every change, also when
one item replaces another; a client that missed it reads the snapshot when it connects again.
Fields
LogLine
Live: a line of a running job’s log was stored. Only sent with logs=true.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Event
impl Move for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.