Skip to content

Commit c345e08

Browse files
authored
chore: bump to 1.0.0-alpha.3 (#14)
* chore: bump to 1.0.0-alpha.3 * lint: cargo fmt
1 parent 51ca609 commit c345e08

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "apalis-postgres"
3-
version = "1.0.0-alpha.2"
3+
version = "1.0.0-alpha.3"
44
authors = ["Njuguna Mureithi <mureithinjuguna@gmail.com>"]
55
edition = "2024"
66
repository = "https://github.com/apalis-dev/apalis-postgres"
@@ -22,11 +22,11 @@ tokio-comp = ["tokio", "sqlx/runtime-tokio-rustls"]
2222
tokio-comp-native-tls = ["tokio", "sqlx/runtime-tokio-native-tls"]
2323

2424
[dependencies]
25-
apalis-core = { version = "1.0.0-alpha.7", default-features = false, features = [
25+
apalis-core = { version = "1.0.0-alpha.8", default-features = false, features = [
2626
"sleep",
2727
"json",
2828
] }
29-
apalis-sql = { version = "1.0.0-alpha.7", default-features = false }
29+
apalis-sql = { version = "1.0.0-alpha.8", default-features = false }
3030
serde = { version = "1", features = ["derive"] }
3131
chrono = { version = "0.4", features = ["serde"] }
3232
pin-project = "1.1.10"
@@ -46,5 +46,5 @@ features = ["chrono", "postgres", "json"]
4646
[dev-dependencies]
4747
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
4848
once_cell = "1.19.0"
49-
apalis-core = { version = "1.0.0-alpha.7", features = ["test-utils"] }
50-
apalis-workflow = { version = "0.1.0-alpha.5" }
49+
apalis-core = { version = "1.0.0-alpha.8", features = ["test-utils"] }
50+
apalis-workflow = { version = "0.1.0-alpha.6" }

src/ack.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use ulid::Ulid;
1111

1212
use crate::{PgTask, context::PgContext};
1313

14-
#[derive(Clone)]
14+
#[derive(Debug, Clone)]
1515
pub struct PgAck {
1616
pool: PgPool,
1717
}
@@ -81,6 +81,8 @@ pub async fn lock_task(pool: &PgPool, task_id: &Ulid, worker_id: &str) -> Result
8181
Ok(())
8282
}
8383

84+
#[derive(Debug, Clone)]
85+
8486
pub struct LockTaskLayer {
8587
pool: PgPool,
8688
}
@@ -102,6 +104,7 @@ impl<S> Layer<S> for LockTaskLayer {
102104
}
103105
}
104106

107+
#[derive(Debug, Clone)]
105108
pub struct LockTaskService<S> {
106109
inner: S,
107110
pool: PgPool,

src/queries/list_workers.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use apalis_core::backend::{Backend, ListWorkers, RunningWorker};
2-
use apalis_sql::{ context::SqlContext};
2+
use apalis_sql::context::SqlContext;
33
use chrono::{DateTime, Utc};
44
use futures::TryFutureExt;
55
use ulid::Ulid;
@@ -14,7 +14,6 @@ pub struct WorkerRow {
1414
pub started_at: Option<DateTime<Utc>>,
1515
}
1616

17-
1817
use crate::{CompactType, PostgresStorage};
1918

2019
impl<Args: Sync, D, F> ListWorkers for PostgresStorage<Args, CompactType, D, F>

src/queries/reenqueue_orphaned.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::time::Duration;
22

33
use futures::{FutureExt, Stream, stream};
4-
use sqlx::{postgres::types::PgInterval, PgPool};
4+
use sqlx::{PgPool, postgres::types::PgInterval};
55

66
use crate::Config;
77

0 commit comments

Comments
 (0)