Hello, I'm following the offficial example to try out rq+redislite on PythonAnywhere.
Setting up a redislite queue like this works great:
from redislite import Redis
from rq import Queue
from rqjob import count_words_at_url
q = Queue(connection=Redis('RQ_example.rdb'))
result1 = q.enqueue(count_words_at_url, "https://google.com")
result2 = q.enqueue(count_words_at_url, "https://yahoo.com")
len(q)
>>> 2
But running an rq worker on that queue (in a separate bash console) is not connecting:
$ rq worker
>>> Error 111 connecting to localhost:6379. Connection refused.
$ rq worker -u unix:///tmp/tmp_5qy5x5f/redis.socket
>>> Error 111 connecting to unix socket: /tmp/tmp_5qy5x5f/redis.socket. Connection refused.
The first command is what the redislite documentation suggests to do, while the second works on my local computer. I might be missing something PythonAnywhere - specific.
For information, that socket file is the one specified in RQ_example.rdb.settings and it is owned by me and has access rights 700. Both rq and redislite versions are the same on PA and my machine:
$ rq --version
rq, version 1.1.0
$ pip list | grep redislite
redislite 5.0.142319
Has anyone gotten rq to successfully work with redislite on PythonAnywhere?