initialize_redis_workers

Function initialize_redis_workers 

Source
pub async fn initialize_redis_workers<J, RR, TR, NR, NFR, SR, TCR, PR, AKR>(
    app_state: ThinDataAppState<J, RR, TR, NR, NFR, SR, TCR, PR, AKR>,
    handle: Handle,
    shutdown_rx: Receiver<bool>,
) -> Result<WorkerHandle>
Expand description

Initializes Redis/Apalis workers and starts the lifecycle monitor.

ยงArguments

  • app_state - Application state containing the job producer and configuration
  • shutdown_rx - Backend-level shutdown signal (mirrors the SQS/PubSub watch pattern). Selected alongside SIGINT/SIGTERM so QueueBackend::shutdown() can stop this monitor on a programmatic shutdown, not just on an OS signal.