pub enum Event {
JobQueued {
job: JobSummary,
},
JobStarted {
job: JobSummary,
},
JobStep {
job: u64,
step: Step,
},
JobFinished {
job: JobSummary,
},
SlotChanged {
profile: String,
slot: SlotStatus,
},
BudgetChanged {
budget: Budget,
},
RepositoryChanged {
repository: RepositoryStatus,
},
RepositoryRemoved {
repository: String,
},
CacheReseeded {
profile: String,
output: String,
error: Option<String>,
},
JobSample {
job: u64,
sample: Sample,
},
HostSample {
sample: HostSample,
},
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.
Fields
job: JobSummaryThe job.
SlotChanged
A slot’s runner started, took a job, or was removed.
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
JobSample
Live: a running job’s container was sampled.
HostSample
Live: the slice runners run in was sampled.
Fields
sample: HostSampleThe sample.
LogLine
Live: a line of a running job’s log was stored. Only sent with logs=true.