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

Hi, I encountered the following error while using this framework. Could you please advise on how to resolve it? My Redis is in cluster mode. #43

Open
tcxdgit opened this issue Mar 19, 2024 · 1 comment

Comments

@tcxdgit
Copy link

tcxdgit commented Mar 19, 2024

File "/data/tasks.py", line 177, in
scheduler = RedisScheduler(app=app)
File "/usr/local/lib/python3.9/site-packages/redisbeat/scheduler.py", line 48, in init
Scheduler.init(self, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/celery/beat.py", line 257, in init
self.setup_schedule()
File "/usr/local/lib/python3.9/site-packages/redisbeat/scheduler.py", line 68, in setup_schedule
self.merge_inplace(self.app.conf.CELERYBEAT_SCHEDULE)
File "/usr/local/lib/python3.9/site-packages/redisbeat/scheduler.py", line 75, in merge_inplace
old_entries = self.rdb.zrangebyscore(self.key, 0, MAXINT, withscores=True)
File "/usr/local/lib/python3.9/site-packages/redis/client.py", line 2861, in zrangebyscore
return self.execute_command(*pieces, **options)
File "/usr/local/lib/python3.9/site-packages/redis/client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 1183, in get_connection
connection.connect()
File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 558, in connect
self.on_connect()
File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 655, in on_connect
if nativestr(self.read_response()) != 'OK':
File "/usr/local/lib/python3.9/site-packages/redis/connection.py", line 747, in read_response
raise response
redis.exceptions.ResponseError: SELECT is not allowed in cluster mode

@liuliqiang
Copy link
Owner

Hi @tcxdgit , what kind of redis are you using?
And which type of redis cluster?

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