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

Move start of delivery goroutine to configure, don't wait on signals in delivery #250

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

DariaKunoichi
Copy link
Contributor

Goal

Customers reported that delivery goroutine that starts as soon as module is loading is appearing as a leak in the diagnostic tools such as goleak. It can be safely moved to Configure method.
In the delivery goroutine we were also subscribing to os signals as a way to provide graceful shutdown. Unfortunately that led to main program being unable to capture signals. So our signal.Notify usage has to be removed.

Fixes issues:

Changeset

Removed signal.Notify usage in delivery goroutine.
Moved starting delivery goroutine to Configure method.

Testing

Tested using code snippets provided in issues.

@DariaKunoichi DariaKunoichi self-assigned this Oct 16, 2024
@DariaKunoichi DariaKunoichi merged commit 69c2062 into next Oct 21, 2024
53 checks passed
@DariaKunoichi DariaKunoichi deleted the PLAT-12773-fix-goroutine branch October 21, 2024 10:24
This was referenced Oct 21, 2024
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