refactor(lib_core): create new lib core with apalis

use apalis library for task management
This commit is contained in:
Alexander Navarro 2025-12-29 19:45:19 -03:00
parent 2c47226dc9
commit 040c53cebd
7 changed files with 403 additions and 56 deletions

26
task_queue/Cargo.toml Normal file
View file

@ -0,0 +1,26 @@
[package]
name = "task_queue"
version = "0.1.0"
edition = "2024"
[dependencies]
directories = "6.0.0"
tokio = { version = "1.45.0", features = ["default", "rt", "rt-multi-thread", "macros", "signal"] }
tokio-stream = "0.1.17"
sqlx = { version = "0.8", features = ["runtime-tokio", "sqlite", "chrono", "migrate", "uuid"] }
serde = { version = "1.0.219", features = ["derive"] }
chrono = {version = "0.4.41", features = ["serde"]}
serde_json = "1.0.140"
tracing = "0.1.41"
tracing-subscriber = { version = "0.3.19" , features = ["env-filter"]}
figment = { version = "0.10.19", features = ["env"] }
tracing-core = "0.1.33"
futures = "0.3.31"
thiserror = "2.0.12"
async-stream = "0.3.6"
apalis = { version = "1.0.0-rc.1" }
apalis-sqlite = "1.0.0-rc.1"
[dev-dependencies]
fake = { version = "4.3.0", features = ["derive", "chrono", "http", "uuid"] }
tracing-test = "0.2.5"