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

Panic recovery #151

Merged
merged 4 commits into from
Apr 18, 2024
Merged

Panic recovery #151

merged 4 commits into from
Apr 18, 2024

Conversation

joelrebel
Copy link
Member

What does this PR do

This makes sure the task is not left in an active state if the task
handlers panic. Going ahead I'd like to move this into the controller library, for
now this can be here.
DoctorVin
DoctorVin previously approved these changes Apr 17, 2024
Copy link
Collaborator

@DoctorVin DoctorVin left a comment

Choose a reason for hiding this comment

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

Minor comments, nothing that prevents a merge.

"available": strings.Join(b.availableProviders, ","),
"caller": funcName,
},
).Trace("required provider not in available list")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it appropriate for this to just be at TRACE? It feels more serious.

Copy link
Member Author

Choose a reason for hiding this comment

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

since this tends to add a lot of noise its a Trace. I'll look at if it can be turned up - in most cases the actual error would bubble up, this is mainly for debugging.

@joelrebel joelrebel merged commit d6ed897 into main Apr 18, 2024
7 checks passed
@joelrebel joelrebel deleted the panic-recovery branch April 18, 2024 13:52
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.

2 participants