hibiken / asynq

Simple, reliable, and efficient distributed task queue in Go
MIT License
10.03k stars 716 forks source link

fix: mark the client that the scheduler made also as non-shared #972

Open mikhail5555 opened 3 days ago

mikhail5555 commented 3 days ago

the redisClient that the NewScheduler makes should also be marked as non-shared, otherwise it throws the error

ERROR Failed to close redis client connection: redis connection is shared so the Client can't be closed through asynq

on shutdown.