You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created AsynqClient, AsynqServer and PeriodicTaskManager in my application, but while closing the application I am getting the following error
asynq: pid=53613 2025/02/13 10:14:23.071065 ERROR: Failed to close redis client connection: redis connection is shared so the Client can't be closed through asynq
Can someone explain me what's causing this error.
The text was updated successfully, but these errors were encountered:
Describe the bug
A clear and concise description of what the bug is.
Environment (please complete the following information):
asynq
package version [e.g. v0.25.1]To Reproduce
Steps to reproduce the behavior (Code snippets if applicable):
func NewRedisClient(dataCfg *conf.Data, logger log.Logger) (redis.UniversalClient, func()) {
// log := log.NewHelper(logger)
var addrs = []string{dataCfg.Redis.Addr}
rdb := redis.NewUniversalClient(&redis.UniversalOptions{Addrs: addrs,
Password: dataCfg.Redis.Password,
WriteTimeout: dataCfg.Redis.WriteTimeout.AsDuration(),
ReadTimeout: dataCfg.Redis.ReadTimeout.AsDuration()})
return rdb, func() {
log.Info("closing redis connection")
if err := rdb.Close(); err != nil {
log.Error("error in closing redis client ", err)
}
}
}
func NewAsynqClientConn(redis redis.UniversalClient) *asynq.Client {
asynqClient := asynq.NewClientFromRedisClient(redis)
return asynqClient
}
I have created AsynqClient, AsynqServer and PeriodicTaskManager in my application, but while closing the application I am getting the following error
asynq: pid=53613 2025/02/13 10:14:23.071065 ERROR: Failed to close redis client connection: redis connection is shared so the Client can't be closed through asynq
Can someone explain me what's causing this error.
The text was updated successfully, but these errors were encountered: