pub enum TaskEvent {
Sent {
task_id: Uuid,
task_name: String,
queue: String,
timestamp: DateTime<Utc>,
args: Option<String>,
kwargs: Option<String>,
eta: Option<DateTime<Utc>>,
expires: Option<DateTime<Utc>>,
retries: Option<u32>,
},
Received {
task_id: Uuid,
task_name: String,
hostname: String,
timestamp: DateTime<Utc>,
pid: u32,
},
Started {
task_id: Uuid,
task_name: String,
hostname: String,
timestamp: DateTime<Utc>,
pid: u32,
},
Succeeded {
task_id: Uuid,
task_name: String,
hostname: String,
timestamp: DateTime<Utc>,
runtime: f64,
result: Option<String>,
},
Failed {
task_id: Uuid,
task_name: String,
hostname: String,
timestamp: DateTime<Utc>,
exception: String,
traceback: Option<String>,
},
Retried {
task_id: Uuid,
task_name: String,
hostname: String,
timestamp: DateTime<Utc>,
exception: String,
retries: u32,
},
Revoked {
task_id: Uuid,
task_name: Option<String>,
timestamp: DateTime<Utc>,
terminated: bool,
signum: Option<i32>,
expired: bool,
},
Rejected {
task_id: Uuid,
task_name: Option<String>,
hostname: String,
timestamp: DateTime<Utc>,
reason: String,
},
}Expand description
Task lifecycle events (Celery-compatible)
Variants§
Sent
Task was sent to the queue
Fields
Received
Task was received by a worker
Fields
Started
Task execution started
Fields
Succeeded
Task completed successfully
Fields
Failed
Task execution failed
Fields
Retried
Task is being retried
Fields
Revoked
Task was revoked/cancelled
Fields
Rejected
Task was rejected by worker
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskEvent
impl<'de> Deserialize<'de> for TaskEvent
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TaskEvent
Auto Trait Implementations§
impl Freeze for TaskEvent
impl RefUnwindSafe for TaskEvent
impl Send for TaskEvent
impl Sync for TaskEvent
impl Unpin for TaskEvent
impl UnwindSafe for TaskEvent
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