pub enum QueueReplicateOp {
Enqueue {
job_id: u64,
payload: Vec<u8>,
enqueued_at_ms: u64,
next_job_id: u64,
priority: u8,
not_before_ms: u64,
dedup_key: Option<Vec<u8>>,
attempts: u32,
max_attempts: u32,
},
Lease {
lease_id: u64,
job_id: u64,
worker_node: u64,
worker_instance: u32,
expires_at_ms: u64,
next_lease_id: u64,
},
Ack {
lease_id: u64,
job_id: u64,
},
Nack {
lease_id: u64,
job_id: u64,
attempts: u32,
dead_letter: bool,
not_before_ms: u64,
},
Reclaim {
lease_id: u64,
job_id: u64,
attempts: u32,
dead_letter: bool,
not_before_ms: u64,
},
RequeueDeadLetter {
job_id: u64,
attempts: u32,
},
UpsertSchedule {
schedule: RecurringScheduleWire,
},
UpdateScheduleNextRun {
name: String,
next_run_ms: u64,
},
}Expand description
Idempotent state transition replicated from the queue leader to every voter
(POST /raft/v1/queue/replicate).
Variants§
Enqueue
Append a job and advance the stream’s next_job_id.
Fields
Lease
Move a job from pending to leased.
Fields
Ack
Job completed — remove job and lease rows.
Nack
Worker rejected the job — return to pending or dead letter.
Fields
Reclaim
Visibility timeout expired — job returns to pending or dead letter.
Fields
RequeueDeadLetter
Operator moved a dead-letter job back to pending.
UpsertSchedule
Upsert a cron schedule (builder / operator).
Fields
§
schedule: RecurringScheduleWireSchedule body.
UpdateScheduleNextRun
Leader advanced a schedule after enqueueing its tick.
Trait Implementations§
Source§impl Clone for QueueReplicateOp
impl Clone for QueueReplicateOp
Source§fn clone(&self) -> QueueReplicateOp
fn clone(&self) -> QueueReplicateOp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueueReplicateOp
impl Debug for QueueReplicateOp
Source§impl<'de> Deserialize<'de> for QueueReplicateOp
impl<'de> Deserialize<'de> for QueueReplicateOp
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 Eq for QueueReplicateOp
Source§impl PartialEq for QueueReplicateOp
impl PartialEq for QueueReplicateOp
Source§impl Serialize for QueueReplicateOp
impl Serialize for QueueReplicateOp
impl StructuralPartialEq for QueueReplicateOp
Auto Trait Implementations§
impl Freeze for QueueReplicateOp
impl RefUnwindSafe for QueueReplicateOp
impl Send for QueueReplicateOp
impl Sync for QueueReplicateOp
impl Unpin for QueueReplicateOp
impl UnsafeUnpin for QueueReplicateOp
impl UnwindSafe for QueueReplicateOp
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