How to do a graceful shutdown of gitlab-runner on Windows?
Problem
Doing a graceful shutdown of the gitlab-runner process on Windows.
Failed Attempts
Using Powershell with administrative rights I tried:
-
taskkill.exe:
taskkill \IM gitlab-runner.exethrows a message that the force-option has to be used,taskkill \F \IM gitlab-runner.exe, which then shuts down gitlab-runner.exe immediately without finishing the jobs first. -
Stop-Process:
Stop-Process -name gitlab-runnerkills the gitlab-runner.exe immediately without finishing the jobs first.
Platform
Windows 7 x64
Gitlab-runner version
Version: 1.9.1
Git revision: b23d3d44
Git branch:
GO version: go1.7.4
Built: Tue, 27 Dec 2016 15:30:25 +0000
OS/Arch: windows/amd64
UPDATE: Issue also exists with runner version 1.10.0.
Best regards and thanks in advance!