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

How to see that all tasks finished? #55

Closed
iliakan opened this issue Jan 21, 2016 · 2 comments
Closed

How to see that all tasks finished? #55

iliakan opened this issue Jan 21, 2016 · 2 comments

Comments

@iliakan
Copy link

iliakan commented Jan 21, 2016

E.g I want to disconnect from database when gulp is done.

How can I detect and do that?

In the past, gulp.on('stop') with orchestrator could help, but now stop works on every task.

@phated
Copy link
Member

phated commented Feb 9, 2016

process.on('exit')

@phated phated closed this as completed Feb 9, 2016
@iliakan
Copy link
Author

iliakan commented Feb 10, 2016

@phated that's wrong.

Imagine you have a DB connection open by a gulp task.
Gulp finished, but the process won't exit.

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

No branches or pull requests

2 participants