#[non_exhaustive]pub enum JobRecoveryBehavior {
FailAndRetryImmediately,
FailAndRetryWithBackoff,
}Expand description
How to treat jobs which are already marked as running when the queue starts. This accounts for cases where the process is restarted unexpectedly.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FailAndRetryImmediately
Mark the job as failed, and schedule the next try to run immediately. (Normal worker concurrency limits will still apply.)
FailAndRetryWithBackoff
Mark the job as failed, and schedule the next try to run with the normal retry backoff timing.
Auto Trait Implementations§
impl Freeze for JobRecoveryBehavior
impl RefUnwindSafe for JobRecoveryBehavior
impl Send for JobRecoveryBehavior
impl Sync for JobRecoveryBehavior
impl Unpin for JobRecoveryBehavior
impl UnwindSafe for JobRecoveryBehavior
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