Skip to content

fix: use new NotifyContext helper #1076

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

Merged
merged 1 commit into from
Mar 24, 2025
Merged

fix: use new NotifyContext helper #1076

merged 1 commit into from
Mar 24, 2025

Conversation

lionello
Copy link
Member

@lionello lionello commented Mar 24, 2025

Description

Track ctrl-c interrupt in main goroutine to avoid WaitGroup panic

What must have happened is that we’re calling FlushAllTracking at the end of main but during the Wait another event happened in some go routine, so the WaitGroup went from 0->1 causing the panic.

Checklist

  • I have performed a self-review of my code
  • I have added appropriate tests
  • I have updated the Defang CLI docs and/or README to reflect my changes, if necessary

Track ctrl-c interrupt in main goroutine to avoid WaitGroup panic
Copy link
Contributor

@edwardrf edwardrf left a comment

Choose a reason for hiding this comment

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

LGTM

@lionello lionello merged commit 156638d into main Mar 24, 2025
12 checks passed
@lionello lionello deleted the lio/fix-interrupt-panic branch March 24, 2025 19:51
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.

3 participants