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

Terminate server together with the shell #2350

Merged
merged 1 commit into from
Jun 10, 2020

Conversation

op
Copy link
Contributor

@op op commented Jun 9, 2020

Description

Previously the interrupt handler for functions:shell was only triggered once the repl had been
exited. Thus you had to interrupt the process three times before it ended.

Previously the SIGINT handler was only triggered once the repl had been
exited. Thus you had to interrupt the process three times before it
ended.
@googlebot googlebot added the cla: yes Manual indication that this has passed CLA. label Jun 9, 2020
@samtstern
Copy link
Contributor

@op thank you! That bug has been botherinig me for so long.

@samtstern samtstern merged commit f13f4f0 into firebase:master Jun 10, 2020
@op op deleted the shell-repl-exit branch June 17, 2020 08:39
@TanguyDucky
Copy link

Funny, I was using this as a feature!
Since there is no emulation of scheduled function (CRON), I was using this command line to trigger my function every X seconds.

echo "setInterval(() => CRONfunction(), 30000)" | firebase functions:shell

With this PR, it doesn't work anymore because the pipe closes the input stream, which causes the termination of the shell 😭

If you can think of a workaround, that would be awesome 🙈 Otherwise we could just revert this PR 😇 (just kidding, I'm grateful for all contributions 😊 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Manual indication that this has passed CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants