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

handle exceptions in background_jobs properly #447

Open
Panaetius opened this issue Oct 9, 2024 · 0 comments
Open

handle exceptions in background_jobs properly #447

Panaetius opened this issue Oct 9, 2024 · 0 comments

Comments

@Panaetius
Copy link
Member

We perform various migrations in background jobs, but if one step has an unhandled exception, none of the following steps will run. This has caused issues in the past.

At the same time, we want to know if there is something wrong, so we want the k8s job to fail if there is an issue so we know there's something wrong.

To this end, we should catch and collect exceptions in all migration steps and continue on errors, and then raise an exception at the end of the whole job if there were any exceptions.

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