Gulp doesn't shut down on Ctrl-C when `watchGraphQlOperations` is used
Created by: mrnugget
- Sourcegraph version: main
- Platform information:
Steps to reproduce:
./node_modules/.bin/gulp --color watch
- Hit
Ctrl-C
Expected behavior:
Process shuts down in reasonable amount of time (less than 1s?)
Actual behavior:
Process doesn't shut down.
In our dev environment the process gets killed after 10s by goreman
. Until then, it blocks all the other processes from shutting down.
When I add another task to the gulpfile.js
that's close to watchGenerate
, except that it doesn't include watchGraphQlOperations
, the shutdown is immediate:
// gulpfile.js
// [...]
const watchGenerate = gulp.series(generate, gulp.parallel(watchSchema, watchGraphQlSchema, watchGraphQlOperations))
const watchGenerateWithoutOps = gulp.series(generate, gulp.parallel(watchSchema, watchGraphQlSchema))
module.exports = {
// [...]
watchGenerate,
// [...]
watchGenerateWithoutOps,
}
GIF: