pub enum JobEvent {
Ready {
workflow_id: String,
job_id: String,
},
Started {
workflow_id: String,
job_id: String,
worker_id: String,
},
Completed {
workflow_id: String,
job_id: String,
outputs: HashMap<String, String>,
},
Failed {
workflow_id: String,
job_id: String,
error: String,
retryable: bool,
},
Cancelled {
workflow_id: String,
job_id: String,
},
LeaseExpired {
workflow_id: String,
job_id: String,
worker_id: String,
},
}Expand description
Events emitted by the queue for the scheduler to react to.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JobEvent
impl RefUnwindSafe for JobEvent
impl Send for JobEvent
impl Sync for JobEvent
impl Unpin for JobEvent
impl UnsafeUnpin for JobEvent
impl UnwindSafe for JobEvent
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
Mutably borrows from an owned value. Read more