1. List runners to get their tokens and URLs:

    sudo gitlab-runner list
    
  2. Verify with delete option specifying runner's token and URL:

    sudo gitlab-runner verify --delete -t YMsSCHnjGssdmz1JRoxx -u http://git.xxxx.com/
    
Answer from Serge Iroshnikov on Stack Overflow
🌐
GitLab
docs.gitlab.com › gitlab docs › install › configure gitlab runner › commands
GitLab Runner commands | GitLab Docs
These processes are executed as ... for fail. ... Register the runner as a local service (like systemd) with SIGQUIT as the kill signal, and use gitlab-runner stop or systemctl stop gitlab-runner.service....
🌐
GitLab
gitlab.com › gitlab.org › gitlab-runner › repository
docs/commands · fd98f3b671c5ee4fb8fd54a41c7a242eb73a91d9 · GitLab.org / gitlab-runner · GitLab
When you kill them, the operations they are responsible for fail. ... Register the runner as a local service (like systemd) with SIGQUIT as the kill signal, and use gitlab-runner stop or systemctl stop gitlab-runner.service.
Discussions

How do I delete/unregister a GitLab runner - Stack Overflow
I have registered a personal GitLab runner several months ago, which I no longer use. How do I completely delete it so that it does not show up on my GitLab CI/CD settings page? ... For this you will also need to remove it from your CI/CD page on Gitlab first 2021-11-07T06:45:26.583Z+00:00 ... Even though the command ... More on stackoverflow.com
🌐 stackoverflow.com
gitlab-runner commands lifecycle for restarting runner - Stack Overflow
I'm trying to configure a runner ... https://docs.gitlab.com/runner/commands/ but It's not clear what the command lifecycle is for run/start/install/register · Should register be called once or every time I reboot the system. What about install and start? To restart a runner should I do stop , uninstall ... More on stackoverflow.com
🌐 stackoverflow.com
Hide runner execution command
🌐 r/gitlab
7
1
July 15, 2022
Can I stop/pause individual docker executor runners on a single machine?
Problem to solve I have a single Linux machine, where I installed gitlab-runner and configured 3 different docker executor runners. I know I can stop whole gitlab runner server to stop any activity on them. But is it also possible somehow to stop individual runner only? More on forum.gitlab.com
🌐 forum.gitlab.com
1
0
February 4, 2025
🌐
GitLab
gitlab.com › gitlab.org › gitlab-runner › #3154
How to stop gitlab runner (#3154) · Issues · GitLab.org / gitlab-runner · GitLab
What is the most explicit way through the commandline to force stop a specific runner? I have a rogue pipeline that is sending hundreds of emails of code review comments in a merge request. The only way I can stop it is by shutting down gitlab. Is there a way to send a command that will simply cease everything the runner is doing?
🌐
GitLab
docs.gitlab.com › gitlab docs › install › configure gitlab runner › troubleshooting
Troubleshooting GitLab Runner | GitLab Docs
Set the ZONEINFO environment variable containing a full path to the zoneinfo.zip file. If you are starting the Runner using the run command, then you can do this with:
🌐
GitLab
docs.gitlab.com › gitlab docs › administer › administer gitlab runner › create and manage runners
Manage runners | GitLab Docs
September 15, 2022 - When you delete a group runner, it is permanently deleted from the GitLab instance and can no longer be used by subgroups and projects. If you want to temporarily stop the runner from accepting jobs, you can pause the runner instead.
🌐
E-SPIN Group
e-spincorp.com › documentation › gitlab-server-and-runner-stop-and-start-procedure
GitLab Server and Runner Stop and Start Procedure | E-SPIN Group
For the context of customer who ... GitLab runner. When performing any service updates or patching that affect both boxes, it’s crucial to properly stop and start them again after the server restarts. To stop all GitLab components on Box 1 (GitLab Server), execute the following command in the Linux ...
Top answer
1 of 10
54
  1. List runners to get their tokens and URLs:

    sudo gitlab-runner list
    
  2. Verify with delete option specifying runner's token and URL:

    sudo gitlab-runner verify --delete -t YMsSCHnjGssdmz1JRoxx -u http://git.xxxx.com/
    
2 of 10
34

Get your runner token and id

First, go to the GitLab settings page and find the token (e.g. 250cff81 in the image below) and the id (e.g. 354472 in the image below) of the GitLab runner which you wish to delete.

Use the gitlab-runner CLI to unregister the runner

If you have access to the machine which was used to register the GitLab runner, you can unregister the runner using the following command, where you replace {TOKEN} with the token of your GitLab runner (e.g. 250cff81 in the example above).

gitlab-runner unregister --url https://gitlab.org/ --token {TOKEN}

Use the GitLab API to unregister the runner

If you no longer have access to the machine which was used to register the runner, or if the runner is associated with multiple projects, you can use the following Python script. Set RUNNER_ID to the id of your runner (e.g. 354472 in the example above) and GITLAB_AUTH_TOKEN to a GitLab token which you can generate from your profile page.

import os
import requests

GITLAB_AUTH_TOKEN = ...
RUNNER_ID = ...

headers = {"PRIVATE-TOKEN": GITLAB_AUTH_TOKEN}

r = requests.get(f"https://gitlab.com/api/v4/runners/{RUNNER_ID}", headers=headers)
runner_data = r.json()

for project in runner_data.get("projects", []):
    r = requests.delete(
        f"https://gitlab.com/api/v4/projects/{project['id']}/runners/{RUNNER_ID}",
        headers=headers,
    )
    if not r.ok:
        print("Encountered an error deleting runner from project:", r.json())

r = requests.delete(f"https://gitlab.com/api/v4/runners/{RUNNER_ID}", headers=headers)
if not r.ok:
    print("Encountered an error deleting runner:", r.json())
🌐
Creationline
gitlab-docs.creationline.com › インストール › gitlab runnerの設定 › コマンド
GitLab Runnerコマンド | GitLab
SIGQUIT を kill シグナルとして、ランナーをローカルサービス(systemd のような)として登録し、gitlab-runner stop またはsystemctl stop gitlab-runner.serviceを使います。GitLab.com の共有ランナーの設定の例を示します:
Find elsewhere
🌐
DevOps as Craft
virtualizare.net › devops › how-to-stop-gitlab-runner-a-step-by-step-guide.html
How to Stop GitLab Runner: A Step-by-Step Guide
September 2, 2024 - Permission Denied: Ensure you are using sudo to run the commands. Service Not Found: Double-check the service name. It should be gitlab-runner. Service Fails to Stop: Try restarting your system and then stopping the service again.
🌐
GitHub
gist.github.com › Schnouki › a4864a8b7d2299ad477b599e66b24568
Start and stop gitlab-runner with systemd timers · GitHub
Start and stop gitlab-runner with systemd timers. GitHub Gist: instantly share code, notes, and snippets.
🌐
GitLab
docs.gitlab.com › gitlab docs › install › configure gitlab runner › system services
The system services of GitLab Runner | GitLab Docs
After adding these two settings to the systemd unit configuration, you can stop the runner. After the runner stops, systemd uses SIGQUIT as the kill signal to stop the process. Additionally, a two-hour timeout is set for the stop command.
🌐
GitLab
forum.gitlab.com › gitlab ci/cd
Can I stop/pause individual docker executor runners on a single machine? - GitLab CI/CD - GitLab Forum
February 4, 2025 - Problem to solve I have a single Linux machine, where I installed gitlab-runner and configured 3 different docker executor runners. I know I can stop whole gitlab runner server to stop any activity on them. But is it als…
🌐
Linux Command Library
linuxcommandlibrary.com › man › gitlab-runner
gitlab-runner man | Linux Command Library
$ sudo gitlab-runner stop · Run in foreground (for debugging) $ gitlab-runner run · Verify runner connections · $ gitlab-runner verify · Unregister a runner · $ sudo gitlab-runner unregister --name [runner_name] Check runner status · $ ...
🌐
GitLab
forum.gitlab.com › gitlab ci/cd
How force stop job at the end - GitLab CI/CD - GitLab Forum
October 20, 2022 - Hello, I use gitlab for CI. When I push, the job is ok but never completes. How can I tell the job that I have finished? I use powershell. Last command executed: asadmin start-domain domain1 Attempting to start do…