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

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

Open
alvin1 opened this issue Dec 6, 2018 · 0 comments
Open

Comments

@alvin1
Copy link

alvin1 commented Dec 6, 2018

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?

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

1 participant