Stopping a Running Pipeline

978 views
Skip to first unread message

Brian Gillespie

unread,
Jan 27, 2016, 3:09:02 PM1/27/16
to go-cd
Is there a proper method for stopping a pipeline that is either hung or taking too long?

thanks,
Brian

Mahesh Panchakasahriah

unread,
Jan 28, 2016, 12:38:53 AM1/28/16
to go-cd
Hello Brian,

You should be able to stop the pipeline by cancelling the current running stage, but cancelling would wait for the running tasks to complete.

The other option is to set a Job Timeout[1] to cancel jobs.


Thanks,
Mahesh

Brian Gillespie

unread,
Jan 28, 2016, 11:25:02 AM1/28/16
to go-cd
Mahesh,

Thanks for the reply. I am familiar with the timeout settings, but the task I have takes about 3 hours and my timeout is set to 4 hours. I was hoping for a way to abort the running task and not wait for a timeout or it's completion.

Brian

Aravind SV

unread,
Feb 1, 2016, 8:15:56 AM2/1/16
to go...@googlegroups.com
Hi Brian,

Cancelling a stage should kill any running task, as long as it allows itself to be killed (meaning, it does not block SIGTERM). Some discussion around this is here.

Cheers,
Aravind

--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages