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

Make sure bodhi_update job runs don't get stuck in queued state #2609

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

nforro
Copy link
Member

@nforro nforro commented Oct 29, 2024

When an unhandled exception occurs, a Sentry issue is created but the job run stays in queued state, which breaks the condition that is supposed to prevent submitting the same update more than once, as it considers that job run to be in progress. Make sure the state is updated when that happens.

Question is, in such case should the exception and traceback be stored and issue with it created in the issue repository or do we consider that internal?

Related to #2596.

@nforro nforro requested a review from a team as a code owner October 29, 2024 16:39
Copy link
Contributor

packit_service/worker/handlers/bodhi.py Outdated Show resolved Hide resolved
@nforro
Copy link
Member Author

nforro commented Nov 1, 2024

@lbarcziova Do you think something like this could work? Or do we want to suppress the exception until the last try?

Copy link
Contributor

Copy link
Member

@lbarcziova lbarcziova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, this looks good to me!

@nforro nforro added the mergeit When set, zuul wil gate and merge the PR. label Nov 4, 2024
Copy link
Contributor

Build succeeded (gate pipeline).
https://softwarefactory-project.io/zuul/t/packit-service/buildset/42813cc9cdd24d149bb0e60839f4666f

✔️ pre-commit SUCCESS in 2m 06s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 0c72b11 into packit:main Nov 4, 2024
4 checks passed
@nforro nforro deleted the sidetags branch November 4, 2024 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit When set, zuul wil gate and merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants