Problem to solve
After setting up my first runner in a container, I set out to transform it into a managed service, which involved stopping the runner process. After it was stopped as a standalone process but before it was started as a service (i.e. it was not running), I checked the UI of Gitlab, which happily reported the runner as online, with last contact up to an hour ago. I would have expected the Gitlab instance to recognize the loss of the connection to the runner process and mark it as offline accordingly within a reasonable time frame (say about 5-10 minutes max).
Searching the web for this only returned inverse cases, where a runner was supposed to be online but was shown as offline, so Iām asking here: why didnāt Gitlab mark the runner as offline? Was it due to the time elapsed being too low to be registered as a lost connection? Was it because of a mistake I made when shutting down the runner? What or where should I check in order to learn more about this topic?
Steps to reproduce
- Set up a runner
- Start the runner in a podman container and register it (
podman run gitlab/gitlab-runner --url https://some.local.url --token glrt-secret-token
,podman run gitlab/gitlab-runner
) - Verify that the running container results in Gitlab correctly displaying the runner as online
- Stop the container (
podman stop gitlab-runner
) - Check the runner in the Gitlab interface
Expected result: Gitlab says the runner is offline after at most a few minutes.
Observed result: Gitlab says the runner is online, even after an hour.
Versions
- Self-managed, GitLab Enterprise Edition v17.0.2-ee
-
GitLab.com
SaaS - Dedicated