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

Run device manager outside of the error group #2158

Merged
merged 4 commits into from
Jan 8, 2025

Conversation

RonFed
Copy link
Collaborator

@RonFed RonFed commented Jan 8, 2025

The device manager library doesn't support passing a context, hence it can't be canceled by the error group.
To avoid blocking Odiglet in case of a fatal error, the device manager is changed to run in a "regular" goroutine.

@RonFed RonFed requested a review from blumamir January 8, 2025 09:39
Comment on lines 115 to 117
log.Logger.V(0).Info("Device manager exited")
return err
})
if err != nil {
log.Logger.Error(err, "Device manager exited with error")
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: when existed with error, we will have 2 log lines for this:

Device manager exited
Device manager exited with error

@RonFed RonFed enabled auto-merge (squash) January 8, 2025 11:51
@RonFed RonFed merged commit a90e163 into odigos-io:main Jan 8, 2025
31 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.

2 participants