I’m using gitlab runners on a digital ocean droplet. I set up a cron job to clean up disk space so my CI never crashes because of missing storage space. I currently stop the runner to put any upcoming builds on hold, run a docker prune and restart the runner when it’s done. I was just curious to know if there is a way I could know if the runner is currently executing a job when I try to stop it so I don’t interrupt a build when I try to clean the disk. I couldn’t find such command online. Thanks for the help!
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Gitlab runners stopped working today | 1 | 1154 | September 28, 2020 | |
| Gitlab runner is stuck on pending | 4 | 49850 | September 27, 2016 | |
| How to restart gitlab runner safely? | 1 | 6168 | April 2, 2021 | |
| How to list the currently running jobs of a (private) runner? | 1 | 11992 | August 3, 2021 | |
| Gitlab-runner check job infrequently | 0 | 1433 | March 31, 2021 |