Skip to main content

QueueError

Type Alias QueueError 

Source
pub type QueueError = Error;
Expand description

Type alias for backward compatibility.

Aliased Type§

pub enum QueueError {
    Backend(Box<dyn Error + Sync + Send>),
    UnknownJobType(String),
    JobNotFound(Uuid),
    QueueEmpty(String),
    LeaseExpired {
        job_id: Uuid,
        worker_id: String,
    },
    PayloadDeserialization(Error),
    InvalidState(String),
    Internal(String),
}

Variants§

§

Backend(Box<dyn Error + Sync + Send>)

Storage backend error wrapper.

§

UnknownJobType(String)

Job type has no registered handler.

§

JobNotFound(Uuid)

Job with specified ID was not found.

§

QueueEmpty(String)

Queue is empty or no jobs are ready for leasing.

§

LeaseExpired

Lease expired for specified job and worker.

Fields

§job_id: Uuid
§worker_id: String
§

PayloadDeserialization(Error)

JSON payload deserialization failure.

§

InvalidState(String)

Invalid configuration or state transition error.

§

Internal(String)

General internal error.