Actual worker differentiation

This commit is contained in:
2025-09-08 16:02:42 +02:00
parent ccd676b390
commit 688d0406c0
2 changed files with 101 additions and 53 deletions

View File

@@ -32,6 +32,7 @@ services:
timeout: 5s
retries: 3
# Main worker: handles downloads, indexing, RSS, OWUI, etc. (no heavy Whisper)
podx-worker:
build: ./app
container_name: podx-worker
@@ -71,6 +72,7 @@ services:
extra_hosts:
- host.docker.internal:host-gateway
# Transcribe-only worker: listens to the "transcribe" queue and runs Whisper jobs
podx-worker-transcribe:
build: ./app
container_name: podx-worker-transcribe
@@ -150,6 +152,7 @@ services:
# - /mnt/secure/cookies.txt:/config/cookies.txt:ro
restart: unless-stopped
# Scanner: watches /library and enqueues jobs (heavy jobs go to "transcribe" queue)
podx-scanner:
build: ./app
container_name: podx-scanner
@@ -160,6 +163,7 @@ services:
REDIS_URL: redis://redis:6379/0
LIBRARY_ROOT: /library
TRANSCRIPT_ROOT: /transcripts
TRANSCRIBE_QUEUE: transcribe
SCAN_INTERVAL: 30
JOB_TIMEOUT: ${JOB_TIMEOUT:-14400}
JOB_TTL: ${JOB_TTL:-86400}