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

fix(jit-values): they can actually get canceled #5288

Merged
merged 1 commit into from
May 16, 2024

Conversation

dpc
Copy link
Contributor

@dpc dpc commented May 14, 2024

Leading to panics on shutdown sometimes.

@dpc dpc requested a review from a team as a code owner May 14, 2024 19:30
if err.is_cancelled() {
warn!(target: LOG_TASK, %err, type_name = %std::any::type_name::<T>(), "Jit value task canceled:");
}
panic!("Jit value {} failed unexpectedly with: {}", std::any::type_name::<T>(), err);
Copy link
Contributor

Choose a reason for hiding this comment

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

Took me way too long to find that diff 😆 would have been nice if the pure refactoring was a separate PR, or at least if there was a comment pointing to the actual change 🙈

Copy link
Contributor Author

@dpc dpc May 16, 2024

Choose a reason for hiding this comment

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

Oh. The whole outside thing had to change due needing to return some value. So there's no smaller way that would compile (that I could come up with at least).

@elsirion elsirion added this pull request to the merge queue May 16, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 16, 2024
@elsirion elsirion added this pull request to the merge queue May 16, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 16, 2024
@elsirion elsirion added this pull request to the merge queue May 16, 2024
Merged via the queue into fedimint:master with commit 8bf8212 May 16, 2024
21 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants