Replies: 1 comment 2 replies
-
Can you do I'm saying this becauase I'm not sure if
The worker shouldn't be starting a server manually. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Your document says that in order to use Python packages rq and regis, we have to run redis-server first, but I noticed that on my Macbook in a virtual environment for an Flask app, I don't need to start redis-server manually, it seems that the following rq command will start redis-server for me,
rq workers
This can be verified by the following steps:
(1) Reboot the MacBook, don't start "redis-server"
(2) Execute command "netstat | grep 6379" to confirm that redis-server is not running. See nothing as expected.
(3) Execute command "rq workers "
(4) Execute command "netstat | grep 6379" to check if redis-server is running, I see,
~% netstat | grep 6379
tcp6 0 0 localhost.6379 localhost.49213 ESTABLISHED
tcp6 0 0 localhost.49213 localhost.6379 ESTABLISHED
tcp6 0 0 localhost.6379 localhost.49212 ESTABLISHED
tcp6 0 0 localhost.49212 localhost.6379 ESTABLISHED
so it seems "rq workers has invoked redis-server
(5) I can use the Redis with worker and queue without ever manually starting redis-server.
Can anybody confirm that starting redis-server before using Python rq and redis packages is not required anymore?
The versions that I used are as follows
redis 4.1.2
rq 1.10.1
~% redis-server -v
Redis server v=7.0.7
Thanks
Beta Was this translation helpful? Give feedback.
All reactions