Closed as not planned
Description
Every time I start my server the job that is supposed to start immediately is failing with the error:
[ ERROR ] Job run failed: RedisConnectionPoolError(baseError: RediStack.RedisConnectionPoolError.BaseError.timedOutWaitingForConnection) (Queues/QueuesCommand.swift:122)
When I enable debug logging the error is surrounded by endless messages like this one:
[ DEBUG ] sending command [rdstk_args: [vapor_queues[default], vapor_queues[default]-processing], rdstk_command: RPOPLPUSH, rdstk_conn_id: 65F8B004-C293-4D82-A169-00A743F90973, rdstk_conpool_id: 7CEE7851-B2D5-4633-A7CD-EB562023F067] (RediStack/RedisConnection.swift:245)
[ DEBUG ] sending command [rdstk_args: [vapor_queues[default], vapor_queues[default]-processing], rdstk_command: RPOPLPUSH, rdstk_conn_id: 5048909A-DB80-4824-BAF5-D2CA120C4541, rdstk_conpool_id: 7CEE7851-B2D5-4633-A7CD-EB562023F067] (RediStack/RedisConnection.swift:245)
[ DEBUG ] command succeeded [rdstk_conn_id: 5048909A-DB80-4824-BAF5-D2CA120C4541, rdstk_conpool_id: 7CEE7851-B2D5-4633-A7CD-EB562023F067, rdstk_result: NULL] (RediStack/RedisConnection.swift:272)
I initialised queues like this:
let redisConf = try RedisConfiguration(
hostname: Environment.get("REDIS_HOST") ?? "localhost",
port: Environment.get("REDIS_PORT").flatMap(Int.init(_:)) ?? RedisConnection.Configuration.defaultPort,
password: app.getSecret(with: "REDIS").wait(),
database: Environment.get("REDIS_DB").flatMap(Int.init(_:))
)
app.queues.use(.redis(redisConf))
Afterwards I added my jobs and then dispatched one job that should start immediately at the end of my configure.swift
file:
try app.queues.queue.dispatch(SomeJob.self, .init()).wait()
Has anyone an idea why the job is failing or what the error means exactly?
Environment
-
Vapor Framework version: 4.53.0
-
Vapor Toolbox version: 18.3.3
-
OS version: MacOS 12.1
-
Redis: 5.0.5
-
Queues: 1.8.1
-
Queues Redis Driver: 1.0.3