extract background tasks into worker binary

Move auto_scheduler, library_sync, broadcast_poller, webhook_consumer
from presentation/background/ into crates/worker/src/jobs/.
Presentation is now a pure HTTP server.
This commit is contained in:
2026-07-12 07:28:17 +02:00
parent 826e824b58
commit abcf69ce7e
13 changed files with 521 additions and 48 deletions

27
Cargo.lock generated
View File

@@ -1808,9 +1808,7 @@ dependencies = [
"chrono",
"domain",
"dotenvy",
"handlebars",
"infra-wiring",
"reqwest",
"serde",
"serde_json",
"thiserror",
@@ -3369,6 +3367,31 @@ version = "0.52.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
[[package]]
name = "worker"
version = "0.1.0"
dependencies = [
"adapter-auth",
"adapter-event-publisher",
"adapter-jellyfin",
"adapter-local-files",
"adapter-sqlite",
"anyhow",
"application",
"async-trait",
"chrono",
"domain",
"dotenvy",
"handlebars",
"infra-wiring",
"reqwest",
"serde_json",
"tokio",
"tracing",
"tracing-subscriber",
"uuid",
]
[[package]]
name = "writeable"
version = "0.6.3"