atom-gulp-control icon indicating copy to clipboard operation
atom-gulp-control copied to clipboard

Add option to stop a gulp task

Open michalvankodev opened this issue 10 years ago • 16 comments
trafficstars

I have a gulp task called serve which turns on the server for my application at specific port. I want to be able to stop this task at my will.

michalvankodev avatar Mar 10 '15 13:03 michalvankodev

+1

ghost avatar Apr 07 '15 19:04 ghost

+1

andrew-makarenko avatar Apr 30 '15 07:04 andrew-makarenko

+1

ghost avatar May 05 '15 20:05 ghost

Gulp task will only run one task at a time so you can workaround this by creating a "stop" task that does nothing. Personally, when I want to stop serving I just run my build or clean task.

MicahZoltu avatar Jun 06 '15 21:06 MicahZoltu

+1. I have the same issue. If I run a different task, close the gulp-control tab, or even close Atom there are still python.exe processes running my server. I didn't realize this and one day I found I had 30 python processes running!

dancvogel avatar Jun 17 '15 17:06 dancvogel

+1

jakecobley avatar Jun 17 '15 19:06 jakecobley

+1

ericwooley avatar Jun 26 '15 17:06 ericwooley

:+1:

NicolasPio avatar Jul 07 '15 14:07 NicolasPio

Agreed, it would be very nice to be able to stop watch tasks and destroy the process. Any progress on this?

nlenkowski avatar Sep 17 '15 08:09 nlenkowski

Did some digging into this problem behind this. It seems to be related to the fact that atom's BufferedProcess class doesn't kill children of children.

Relevant issue (i think): https://github.com/atom/atom/issues/7252.

I did some modifications that allow you to click on an active process to kill it, but if your process creates other child processes, it won't effectively kill them.

acburdine avatar Oct 09 '15 23:10 acburdine

+1

cbobbett avatar Oct 24 '15 13:10 cbobbett

:+1:

munkacsimark avatar Jan 07 '16 17:01 munkacsimark

+1, created a stop task but this should really be a built in feature.

tdietrich513 avatar Jan 25 '16 19:01 tdietrich513

This should be fixed once a release is made :smile:

acburdine avatar Jan 25 '16 19:01 acburdine

:+1:

xgvargas avatar Feb 24 '16 01:02 xgvargas

+1

rockResolve avatar May 29 '16 23:05 rockResolve