Long running jobs canceled in gitlab, but runner continues process
I have a long running compile job (~40 minutes). I made 2 pushes one after another. I stopped the first running job with the ui. It tells me that the job is canceled. But the second job stays at pending.
I suspect that the runner finishes the job and is not properly terminated.
Is there a way to test my hypothesis?
I'm using the shell executor for the runner (gitlab and runner are on ubuntu 16.04)
Edit: as written in a comment below steps to reproduce the problem:
create a project with a simple
build: stage: build tags: - ubuntu_amd64 script: - ping localhost
start a pipeline and cancel it. This should also terminate the ping command (but it doesn't)
on the runner see if the process is still running
ps aux | grep ping gitlab-+ 19828 0.0 0.0 8656 1724 ? S 07:59 0:00 ping localhost
or just kill it with
killall ping (use
sudo if the runner is under another user)