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

fix(lambda): shutdown node processes when alpha gets killed #8027

Merged
merged 2 commits into from
Sep 16, 2021

Conversation

NamanJain8
Copy link
Contributor

@NamanJain8 NamanJain8 commented Sep 15, 2021

We were already handling the graceful shutdown of node processes when alpha shuts down.
In case alpha panics, the alpha gets stuck because the node processes.
We were passing the closer.Ctx() so that node process shuts down when alpha stops. But that is not sufficient when alpha panics.


This change is Reviewable

@NamanJain8 NamanJain8 merged commit d3285b8 into master Sep 16, 2021
@NamanJain8 NamanJain8 deleted the naman/fix-shutdown-lambda branch September 16, 2021 06:02
NamanJain8 added a commit that referenced this pull request Sep 16, 2021
We were already handling the graceful shutdown of node processes when alpha shuts down. We were passing the closer.Ctx() so that node process shuts down when alpha stops. But that is not sufficient when alpha panics.
In case alpha panics, the alpha gets stuck because the node processes. This happens when sentry is also enabled. Sentry waits for all processes (child as well as grandchild to complete).

(cherry picked from commit d3285b8)
NamanJain8 added a commit that referenced this pull request Sep 16, 2021
…8030)

We were already handling the graceful shutdown of node processes when alpha shuts down. We were passing the closer.Ctx() so that node process shuts down when alpha stops. But that is not sufficient when alpha panics.
In case alpha panics, the alpha gets stuck because the node processes. This happens when sentry is also enabled. Sentry waits for all processes (child as well as grandchild to complete).

(cherry picked from commit d3285b8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants