From 00100371fb2482841d9d6ada274b181161a96994 Mon Sep 17 00:00:00 2001 From: geofmureithi Date: Fri, 19 Jul 2024 09:45:12 +0300 Subject: [PATCH] bump: to 0.6.0-rc.4 --- Cargo.toml | 4 ++-- packages/apalis-core/Cargo.toml | 2 +- packages/apalis-core/src/lib.rs | 1 - packages/apalis-cron/Cargo.toml | 4 ++-- packages/apalis-cron/src/lib.rs | 2 +- packages/apalis-redis/Cargo.toml | 4 ++-- packages/apalis-sql/Cargo.toml | 4 ++-- packages/apalis-sql/src/from_row.rs | 1 - 8 files changed, 10 insertions(+), 12 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a1510edd..ece12666 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "apalis" -version = "0.6.0-rc.3" +version = "0.6.0-rc.4" authors = ["Geoffrey Mureithi "] description = "Simple, extensible multithreaded background job processing for Rust" repository = "https://github.com/geofmureithi/apalis" @@ -54,7 +54,7 @@ layers = [ docsrs = ["document-features"] [dependencies.apalis-core] -version = "0.6.0-rc.3" +version = "0.6.0-rc.4" default-features = false path = "./packages/apalis-core" diff --git a/packages/apalis-core/Cargo.toml b/packages/apalis-core/Cargo.toml index b04ad9cf..7afb7f59 100644 --- a/packages/apalis-core/Cargo.toml +++ b/packages/apalis-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "apalis-core" -version = "0.6.0-rc.3" +version = "0.6.0-rc.4" authors = ["Njuguna Mureithi "] edition = "2021" license = "MIT" diff --git a/packages/apalis-core/src/lib.rs b/packages/apalis-core/src/lib.rs index 430014ae..ae664b56 100644 --- a/packages/apalis-core/src/lib.rs +++ b/packages/apalis-core/src/lib.rs @@ -174,7 +174,6 @@ impl crate::executor::Executor for TestExecutor { pub mod test_utils { use crate::error::BoxDynError; use crate::request::Request; - use crate::storage::Storage; use crate::task::task_id::TaskId; use crate::worker::WorkerId; use crate::Backend; diff --git a/packages/apalis-cron/Cargo.toml b/packages/apalis-cron/Cargo.toml index f6b42060..c79391e7 100644 --- a/packages/apalis-cron/Cargo.toml +++ b/packages/apalis-cron/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "apalis-cron" -version = "0.6.0-rc.3" +version = "0.6.0-rc.4" edition = "2021" authors = ["Njuguna Mureithi "] license = "MIT" @@ -9,7 +9,7 @@ description = "A simple yet extensible library for cron-like job scheduling for # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -apalis-core = { path = "../../packages/apalis-core", version = "0.6.0-rc.3", default-features = false, features = [ +apalis-core = { path = "../../packages/apalis-core", version = "0.6.0-rc.4", default-features = false, features = [ "sleep", ] } cron = "0.12.1" diff --git a/packages/apalis-cron/src/lib.rs b/packages/apalis-cron/src/lib.rs index babcf245..3610d43a 100644 --- a/packages/apalis-cron/src/lib.rs +++ b/packages/apalis-cron/src/lib.rs @@ -47,7 +47,7 @@ //! let worker = WorkerBuilder::new("morning-cereal") //! .layer(RetryLayer::new(RetryPolicy::retries(5))) //! .data(FakeService) -//! .stream(CronStream::new(schedule).into_stream()) +//! .backend(CronStream::new(schedule)) //! .build_fn(send_reminder); //! Monitor::::new() //! .register(worker) diff --git a/packages/apalis-redis/Cargo.toml b/packages/apalis-redis/Cargo.toml index bd0742ed..240aae75 100644 --- a/packages/apalis-redis/Cargo.toml +++ b/packages/apalis-redis/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "apalis-redis" -version = "0.6.0-rc.3" +version = "0.6.0-rc.4" authors = ["Njuguna Mureithi "] edition = "2021" readme = "../../README.md" @@ -11,7 +11,7 @@ description = "Redis Storage for apalis: use Redis for background jobs and messa # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -apalis-core = { path = "../../packages/apalis-core", version = "0.6.0-rc.3", default-features = false, features = [ +apalis-core = { path = "../../packages/apalis-core", version = "0.6.0-rc.4", default-features = false, features = [ "sleep", "json", ] } diff --git a/packages/apalis-sql/Cargo.toml b/packages/apalis-sql/Cargo.toml index b6c0431e..2498233f 100644 --- a/packages/apalis-sql/Cargo.toml +++ b/packages/apalis-sql/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "apalis-sql" -version = "0.6.0-rc.3" +version = "0.6.0-rc.4" authors = ["Njuguna Mureithi "] edition = "2021" readme = "../../README.md" @@ -25,7 +25,7 @@ features = ["chrono"] [dependencies] serde = { version = "1", features = ["derive"] } serde_json = "1" -apalis-core = { path = "../../packages/apalis-core", version = "0.6.0-rc.3", default-features = false, features = [ +apalis-core = { path = "../../packages/apalis-core", version = "0.6.0-rc.4", default-features = false, features = [ "sleep", "json", ] } diff --git a/packages/apalis-sql/src/from_row.rs b/packages/apalis-sql/src/from_row.rs index 89d6628b..6c7886dd 100644 --- a/packages/apalis-sql/src/from_row.rs +++ b/packages/apalis-sql/src/from_row.rs @@ -131,7 +131,6 @@ impl<'r, T: Decode<'r, sqlx::Postgres> + Type> fn from_row(row: &'r sqlx::postgres::PgRow) -> Result { use sqlx::Row; use std::str::FromStr; - type Timestamp = i64; let job: T = row.try_get("job")?; let id: TaskId =