Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

fix(sg): reduce max interrupt count and os.Exit always#63516

Merged
burmudar merged 5 commits into
mainfrom
wb/sg/reduce-interrupt-max-count
Jun 28, 2024
Merged

fix(sg): reduce max interrupt count and os.Exit always#63516
burmudar merged 5 commits into
mainfrom
wb/sg/reduce-interrupt-max-count

Conversation

@burmudar

@burmudar burmudar commented Jun 27, 2024

Copy link
Copy Markdown
Contributor
  • Once all the hooks have finished we now os.Exit ensuring anything else non-process related quits.
  • Reduce max interrupt count from 5 -> 2. Restoring what it was previously. This might lead to dangling processes.

Issue

Test plan

Tested locally

Changelog

  • sg - Always os.Exit once shutdown hooks have completed
  • sg - Reduce max intterupt count from 5 to 2 to hard exit

Once all the hooks have finished we now os.Exit ensuring anything else
non-process related quits.
@burmudar burmudar requested a review from a team June 27, 2024 09:29
@burmudar burmudar self-assigned this Jun 27, 2024
@cla-bot cla-bot Bot added the cla-signed label Jun 27, 2024
@burmudar burmudar force-pushed the wb/sg/reduce-interrupt-max-count branch from f4e970f to be14146 Compare June 27, 2024 09:35
Comment thread dev/sg/interrupt/interrupt.go Outdated
burmudar added 3 commits June 27, 2024 11:41
with this env var, we won't os.Exit regardless and will instead just
finish the interrut routine. If sg still hangs around after this, it
means something is waiting on input or something.
@burmudar burmudar merged commit 8fc3f11 into main Jun 28, 2024
@burmudar burmudar deleted the wb/sg/reduce-interrupt-max-count branch June 28, 2024 08:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants