gulpjs / undertaker

Task registry that allows composition through series/parallel methods.
MIT License
200 stars 31 forks source link

How to see that all tasks finished? #55

Closed iliakan closed 8 years ago

iliakan commented 8 years ago

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 commented 8 years ago

process.on('exit')

iliakan commented 8 years ago

@phated that's wrong.

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