You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def setup_rq_worker()
conn = redis.StrictRedis(host="xxx.xxx.xxx.xxx", db=0, password="xxx", port=6379)
w = Wroker(["default], connection=conn)
w.work()
print("success start up worker ....")
When I call funciton setup_rq_worker(), It seemed program is been blocked by w.work() function.
How should I start worker with non-block mode ?
Any body can help me to solve this problem, and give me example code?
Thanks
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I define a function to setup python-rq worker.
When I call funciton setup_rq_worker(), It seemed program is been blocked by w.work() function.
How should I start worker with non-block mode ?
Any body can help me to solve this problem, and give me example code?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions