Closed rgl closed 1 year ago
What does the job log say? Especially the last lines of it.
cleanup
stage should normally report an error if it fails to stop the Tart VM.
Oh, I was also trying to run the gitlab runner as a Daemon instead of an Agent. And changing the Daemon setting from:
<key>SessionCreate</key>
<false/>
To:
<key>SessionCreate</key>
<true/>
Made cancelling work.
Sorry for the noise.
When we cancel a GitLab CI job from the GitLab UI, the tart VM is not destroyed.
Accordingly to the GitLab documentation, GitLab will call the
cleanup_exec
to terminate/cleanup the runner when a job is canceled. Maybe this tart executor is not handling that part as a forcefully destroy the VM?For reference, this is how gitlab tart runner is configured: