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

Expose list of workers and their states via API #364

Closed
peteyb opened this issue Jun 6, 2019 · 1 comment
Closed

Expose list of workers and their states via API #364

peteyb opened this issue Jun 6, 2019 · 1 comment

Comments

@peteyb
Copy link

peteyb commented Jun 6, 2019

I would like a method to expose the current state of workers so that I can perform a livenessProbe health check in Kubernetes.

For context, we run django-q via python manage.py qcluster within docker containers hosted in GCP via Kubernetes Engine. We have a redis backend which has 1 master and 2 slaves.

In the scenario where the master node fails one of the slaves is automatically promoted to be the new master. When this happens the django-q workers stop processing any new requests and appear to be hung on the old tasks.

If we perform the broker.ping() it comes back True as the redis slave still connects.

We need a way to determine the state of the workers in this scenario so that we can restart the container to get things working again.

@peteyb
Copy link
Author

peteyb commented Feb 19, 2020

Closing issue, unable to invest time in solution

@peteyb peteyb closed this as completed Feb 19, 2020
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