From 7b071278bc51ce30fa29960747df3b83de94f475 Mon Sep 17 00:00:00 2001 From: asonix Date: Sat, 3 Apr 2021 16:08:01 -0500 Subject: [PATCH] Forward ActixJob constants to Job --- jobs-core/Cargo.toml | 2 +- jobs-core/src/actix_job.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/jobs-core/Cargo.toml b/jobs-core/Cargo.toml index ff80582..9db40a8 100644 --- a/jobs-core/Cargo.toml +++ b/jobs-core/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "background-jobs-core" description = "Core types for implementing an asynchronous jobs processor" -version = "0.9.1" +version = "0.9.2" license-file = "../LICENSE" authors = ["asonix "] repository = "https://git.asonix.dog/Aardwolf/background-jobs" diff --git a/jobs-core/src/actix_job.rs b/jobs-core/src/actix_job.rs index 4fff4d3..044b119 100644 --- a/jobs-core/src/actix_job.rs +++ b/jobs-core/src/actix_job.rs @@ -98,6 +98,10 @@ where type Future = Pin> + Send>>; const NAME: &'static str = ::NAME; + const QUEUE: &'static str = ::QUEUE; + const MAX_RETRIES: MaxRetries = ::MAX_RETRIES; + const BACKOFF: Backoff = ::BACKOFF; + const TIMEOUT: i64 = ::TIMEOUT; fn run(self, state: Self::State) -> Self::Future { let (tx, rx) = oneshot::channel();