Increase backoff exponent for deliveries
This commit is contained in:
parent
13ce219d76
commit
467bd860d9
@ -1,7 +1,7 @@
|
|||||||
use crate::{error::MyError, jobs::JobState};
|
use crate::{error::MyError, jobs::JobState};
|
||||||
use activitystreams::primitives::XsdAnyUri;
|
use activitystreams::primitives::XsdAnyUri;
|
||||||
use anyhow::Error;
|
use anyhow::Error;
|
||||||
use background_jobs::{Job, Processor};
|
use background_jobs::{Backoff, Job, Processor};
|
||||||
use std::{future::Future, pin::Pin};
|
use std::{future::Future, pin::Pin};
|
||||||
use tokio::sync::oneshot;
|
use tokio::sync::oneshot;
|
||||||
|
|
||||||
@ -53,4 +53,5 @@ impl Processor for DeliverProcessor {
|
|||||||
|
|
||||||
const NAME: &'static str = "DeliverProcessor";
|
const NAME: &'static str = "DeliverProcessor";
|
||||||
const QUEUE: &'static str = "default";
|
const QUEUE: &'static str = "default";
|
||||||
|
const BACKOFF_STRATEGY: Backoff = Backoff::Exponential(8);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user