pub enum Error {
Show 17 variants
Migration(Error),
OpenDatabase(Report),
PoolError(PoolError),
Database(Error),
ColumnType(Error, &'static str),
Panic(JoinError),
DbInteract(String),
NotFound,
InvalidJobState(String),
InvalidJobRunInfo(Error),
PayloadError(Error),
TimestampOutOfRange(&'static str),
JobAlreadyConsumed,
Timeout,
Expired,
WorkerNotFound(u64),
QueueClosed,
}Expand description
Errors that can be returned from the queue.
Variants
Migration(Error)
An error occurred while updating the database to a new schema version.
OpenDatabase(Report)
An error occurred while opening the database.
PoolError(PoolError)
Failed to acquire a database connection for reading.
Database(Error)
Encountered an error communicating with the database.
ColumnType(Error, &'static str)
The database contained invalid data.
Panic(JoinError)
An internal task panicked.
DbInteract(String)
An internal error occurred while reading the database.
NotFound
When requesting a job status, the job ID was not found.
InvalidJobState(String)
A job had an unknown state value
InvalidJobRunInfo(Error)
Failed to serialize or deserialize information when recording information about a job run.
PayloadError(Error)
Failed to serialize or deserialize a job payload
TimestampOutOfRange(&'static str)
Invalid value for a job timestamp
JobAlreadyConsumed
A worker attempted to finish a job more than once.
Timeout
The operation timed out. This is mostly used when the queue fails to shut down in a timely fashion.
Expired
The current job has expired.
WorkerNotFound(u64)
An unregistered worker tried to communicate with the queue.
QueueClosed
Indicates that the queue has closed, and so the attempted operation could not be completed.