Flask-RQ2 icon indicating copy to clipboard operation
Flask-RQ2 copied to clipboard

Not all the worker launched if use supervisor to launch multiple workers

Open alvin1 opened this issue 6 years ago • 0 comments

Hello there,

I'm host my app in docker and launch the rq worker with supervisor.

I create a bash script to help launch the worker, the core code is:

#!/usr/bin/env bash

worker_name=$1
queues=$2
launch_time=`date +"%s"`

flask rq worker -n ${worker_name}.${launch_time} ${queues}
exit $?

I tried launch 12 workers by supervisor. But only part of the workers launched and can be find in rq-dashboard. But all the process of each worker launched by script were up.

Are you have any idea about this issue?

And I found another weird issue. The queues of worker become blank in rq-dashboard, and the worker not process any job after that when the working running for a long time.

I had to restart the worker to take it back. When I review the log of supervisord and rq worker, nothing found.

Are you know what caused this issue?

alvin1 avatar Dec 06 '18 03:12 alvin1