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

Queries stuck after worker failures #5801

Open
igorcalabria opened this issue Jul 21, 2022 · 1 comment
Open

Queries stuck after worker failures #5801

igorcalabria opened this issue Jul 21, 2022 · 1 comment

Comments

@igorcalabria
Copy link

Issue Summary

Sometimes queries may be get stuck "running" forever (until redis expiration) after worker failures in redash 10. Running the query again with no changes has no effect as redash thinks the job is already running.

Steps to Reproduce

I'm not sure if these steps are deterministic but I had great success in our pre-production environment.

  1. Refresh a dashboard with several queries that takes more than a few seconds to run
  2. Forcibly kill the worker process

Some of the queries on the dashboard are now in this stuck state.

Technical details:

In the network tab, you can see the redash pinging the job endpoint and getting the query in "Started" state. I double checked if the "remove_ghost_locks" was running and from the logs it didn't remove these queries. It seems the main issue is rq, looking at the recent changelogs, there a bunch of improvements to error handling. Upgrading rq to rq==1.10.1 seemed to fixed this issue.

  • Redash Version: 10.1
  • Browser/OS: Firefox/Linux
  • How did you install Redash: docker on kubernetes
@susodapop
Copy link
Contributor

Related to #5797

We plan to update rq to gather some of these benefits. Thank you for reporting your experience that updating to 1.10.1 seemed to fix the issue for you 👌

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

2 participants