Skip to content

Commit

Permalink
Make tokio-comp the default
Browse files Browse the repository at this point in the history
  • Loading branch information
geofmureithi committed Apr 9, 2023
1 parent 50a0a4b commit 1a5fb1b
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords = ["job", "task", "scheduler", "worker", "cron" ]
edition = "2021"

[features]
default = ["tracing"]
default = ["tracing", "tokio-comp"]
## Support Tracing 👀
tracing = ["apalis-core/trace"]

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ To get started, just add to Cargo.toml

```toml
[dependencies]
apalis = { version = "0.4", features = ["redis", "tokio-comp"] }
apalis = { version = "0.4", features = ["redis"] }
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion examples/actix-web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "MIT OR Apache-2.0"

[dependencies]
anyhow = "1"
apalis = { path = "../../", features = ["redis", "tokio-comp"] }
apalis = { path = "../../", features = ["redis"] }
serde = "1"
env_logger = "0.10"
actix-web = "4"
Expand Down
2 changes: 1 addition & 1 deletion examples/axum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ tokio = { version = "1.0", features = ["full"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
serde = { version = "1.0", features = ["derive"] }
apalis = { path = "../../", features = ["redis", "tokio-comp"] }
apalis = { path = "../../", features = ["redis"] }
futures = "0.3"
email-service = { path = "../email-service" }
2 changes: 1 addition & 1 deletion examples/email-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2018"

[dependencies]
apalis = { path = "../../" }
apalis = { path = "../../", default-features = false }
futures-util = "0.3.0"
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/mysql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "MIT OR Apache-2.0"

[dependencies]
anyhow = "1"
apalis = { path = "../../", features = ["mysql", "async-std-comp"] }
apalis = { path = "../../", features = ["mysql", "async-std-comp", "tracing"], default-features = false }
serde = "1"
tracing-subscriber = "0.3.11"
chrono = { version = "0.4", default-features = false, features = ["clock"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/postgres/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "MIT OR Apache-2.0"

[dependencies]
anyhow = "1"
apalis = { path = "../../", features = ["postgres", "tokio-comp"] }
apalis = { path = "../../", features = ["postgres"] }
serde = "1"
tracing-subscriber = "0.3.11"
chrono = { version = "0.4", default-features = false, features = ["clock"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/postgres/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async fn main() -> Result<()> {
.layer(TraceLayer::new())
.with_storage_config(pg.clone(), |cfg| {
cfg
// Set the buffer size to 100
// Set the buffer size to 100 ( Pick 100 jobs per query)
.buffer_size(100)
// Lower the fetch interval because postgres is waiting for notifications
.fetch_interval(Duration::from_secs(1))
Expand Down
2 changes: 1 addition & 1 deletion examples/prometheus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tokio = { version = "1.0", features = ["full"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
serde = { version = "1.0", features = ["derive"] }
apalis = { path = "../../", features = ["redis", "prometheus", "tokio-comp"] }
apalis = { path = "../../", features = ["redis", "prometheus"] }
futures = "0.3"
metrics = "0.18"
metrics-exporter-prometheus = "0.8"
Expand Down
2 changes: 1 addition & 1 deletion examples/redis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "MIT OR Apache-2.0"
[dependencies]
anyhow = "1"
tokio = { version ="1", features=["macros", "rt-multi-thread"]}
apalis = { path = "../../", features = ["redis", "extensions", "tokio-comp"] }
apalis = { path = "../../", features = ["redis", "extensions"] }
serde = "1"
env_logger = "0.10"
tracing-subscriber = "0.3.11"
Expand Down
2 changes: 1 addition & 1 deletion examples/rest-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "MIT OR Apache-2.0"

[dependencies]
anyhow = "1"
apalis = { path = "../../", features = ["redis", "sqlite", "sentry", "postgres", "mysql", "tokio-comp", "expose"] }
apalis = { path = "../../", features = ["redis", "sqlite", "sentry", "postgres", "mysql", "expose"] }
serde = "1"
tokio = { version = "1", features =["macros", "rt-multi-thread"] }
env_logger = "0.10"
Expand Down
2 changes: 1 addition & 1 deletion examples/sentry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "MIT OR Apache-2.0"

[dependencies]
anyhow = "1"
apalis = { path = "../../", features = ["redis", "sentry", "tokio-comp"] }
apalis = { path = "../../", features = ["redis", "sentry"] }
serde = "1"
env_logger = "0.10"
tracing-subscriber = { version = "0.3.11", features = ["env-filter"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/sqlite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "MIT OR Apache-2.0"
[dependencies]
anyhow = "1"
tokio = { version = "1", features=["macros"] }
apalis = { path = "../../", features = ["sqlite", "limit", "tokio-comp"] }
apalis = { path = "../../", features = ["sqlite", "limit"] }
serde = "1"
tracing-subscriber = "0.3.11"
chrono = { version = "0.4", default-features = false, features = ["clock"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/tracing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "MIT OR Apache-2.0"

[dependencies]
anyhow = "1"
apalis = { path = "../../", features = ["redis", "tokio-comp"] }
apalis = { path = "../../", features = ["redis"] }
serde = "1"
tokio = { version ="1", features = ["macros"]}
env_logger = "0.10"
Expand Down

0 comments on commit 1a5fb1b

Please sign in to comment.