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

"Unknown worker" message after startup #1388

Open
graysonpike opened this issue Jul 30, 2024 · 1 comment
Open

"Unknown worker" message after startup #1388

graysonpike opened this issue Jul 30, 2024 · 1 comment
Labels

Comments

@graysonpike
Copy link

I am experiencing an issue that only comes right after starting Flower. Upon first loading Flower in my browser, I see the default view, which has a table displaying the workers. If I click on one of the workers, I am taken to the correct worker URL (/worker/...), but the page reports that "Unknown worker 'celery@...'". When I refresh the page in my browser, the worker information loads fine. I also found that refreshing the homepage before clicking on the worker will fix the problem.

To Reproduce
Steps to reproduce the behavior:

  1. Deploy a celery worker and celery flower connected to a Redis broker
  2. Open the celery flower homepage
  3. Click on the worker in the "workers" table
  4. You will see an "unknown worker" error
  5. Refresh the page and the worker information will load

Expected behavior
A browser refresh show not be required to display the worker information.

Theories
I have a theory that this is caused by the startup order of the celery worker and flower. But I would expect that flower could gracefully handle being started either before or after the celery worker.

@smashedr
Copy link

smashedr commented Aug 7, 2024

This bug has been around for a very long time. First time clicking on any new worker gives Unknown worker. Any subsequent requests will succeed. Would love to see this fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants