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

Disable signal handlers on AWS lambdas via env var #462

Merged
merged 2 commits into from
Jun 8, 2020
Merged

Disable signal handlers on AWS lambdas via env var #462

merged 2 commits into from
Jun 8, 2020

Conversation

Chowlz
Copy link
Contributor

@Chowlz Chowlz commented Jun 8, 2020

The introduction of shutdown hooks from v0.0.81 prevents babashka from running in an AWS lambda. This PR allows disabling the hook through the same env var for disabling the pipe signal handler and renames the env variable for simplicity.

This allows babashka to be run in an AWS lambda.
@borkdude borkdude changed the title Disable shutdown hooks for AWS lambdas via env var Disable signal handlers on AWS lambdas via env var Jun 8, 2020
@borkdude
Copy link
Collaborator

borkdude commented Jun 8, 2020

Thanks!

Two minor remarks:

  • Maybe the env var should now be called BABASHKA_DISABLE_SIGNAL_HANDLERS, plural?
  • The documentation should also mention SIGINT (as it previously only disabled handling SIGPIPE.

Related PR: #305

…L_HANDLERS

Any signal handler used in AWS lambdas will not work. This simplifies/shortens
the naming of the env var.
@Chowlz
Copy link
Contributor Author

Chowlz commented Jun 8, 2020

Thanks!

Two minor remarks:

* Maybe the env var should now be called `BABASHKA_DISABLE_SIGNAL_HANDLERS`, plural?

* The documentation should also mention `SIGINT` (as it previously only disabled handling `SIGPIPE`.

Related PR: #305

Sounds good. Made the suggested changes.

@borkdude borkdude merged commit 480d613 into babashka:master Jun 8, 2020
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