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

Manage outstanding tasks after server restart #1309

Open
aarontp opened this issue Jul 19, 2023 · 1 comment
Open

Manage outstanding tasks after server restart #1309

aarontp opened this issue Jul 19, 2023 · 1 comment

Comments

@aarontp
Copy link
Member

aarontp commented Jul 19, 2023

We have an issue filed to consider keeping local state in the server if there is a crash or restart, but even without this we can handle outstanding tasks better as currently they will remain open indefinitely even if the timeout has passed. Here are a couple options to investigate:

  • Maybe celery has a better way to recover the state after crash/restart. Currently we don't have the task "stubs" on the server, so we can't update the metadata even if we get responses from workers after a crash.
  • Considering "closing" all outstanding tasks when the server starts up. If the task is actually still running, then it can update its metadata from the worker (though we should verify what would happen in this case). We could potentially only close tasks where the timeouts have been exceeded as well.
@aarontp
Copy link
Member Author

aarontp commented Jul 19, 2023

FYI @jleaniz : As discussed.

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