Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Redis config on dev branch #17

Closed
byoungd opened this issue Jul 9, 2022 · 2 comments
Closed

Error with Redis config on dev branch #17

byoungd opened this issue Jul 9, 2022 · 2 comments

Comments

@byoungd
Copy link

byoungd commented Jul 9, 2022

The program trys to connect to Redis even when redis config enable setting to false

redis:
  # redis uri like this:
  # redis://[:password@]host[:port][/dbnumber]
  # redis-socket://[:password@]path[?db=dbnumber]
  # redis-sentinel://[:password@]host1[:port][,host2:[:port]][,hostN:[:port]][?master=masterName]
  uri: 'redis://127.0.0.1:6379/0'
  # binlog cache key
  binlog-pos: mysql_binlog_pos
  # enable redis
  enable: false
  # enable binlog redis service(pkg.cache_service)
  enable-binlog: false

Log info is:

 redis command error: SADD failed: dial tcp 127.0.0.1:6379: connect: connection refused
asynq: pid=7497 2022/07/09 10:01:28.467050 ERROR: Dequeue error: UNKNOWN: redis eval error: dial tcp 127.0.0.1:6379: connect: connection refused
asynq: pid=7497 2022/07/09 10:01:30.015595 ERROR: cannot subscribe to cancelation channel: UNKNOWN: redis pubsub receive error: dial tcp 127.0.0.1:6379: connect: connection refused
@byoungd byoungd changed the title Error with Redis config Error with Redis config on dev branch Jul 9, 2022
@piupuer
Copy link
Owner

piupuer commented Jul 15, 2022

u should disable delay queue:

qu := delay.NewQueue(

because it dependence redis, I will disable it by redis.enable in the future

@byoungd
Copy link
Author

byoungd commented Jul 16, 2022

u should disable delay queue:

qu := delay.NewQueue(

because it dependence redis, I will disable it by redis.enable in the future

Thanks for reply.

@byoungd byoungd closed this as completed Jul 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants