Enable stale runner cleanup Admin Area > Runners
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem to solve
In #342605 (closed) the Enable stale runner cleanup toggle switch was added to the Group view. For the next iteration of the auto-removal of stale runners feature, we need to add this capability to the Admin Area > Runners view. This is required so that administrators of self-managed GitLab can activate this feature at the instance level.
Implementation tasks:
-
Add the enable stale runnertoggle in the frontend in Admin Area > Settings as described in designs in design management. -
Implement worker to delete stale runners at the instance level, in groups and sub-groups. -
Create a new application setting for whether to clean up stale runners. -
Create a StaleRunnersPruneWorker that calls the service if the setting is enabled for the instance. -
Create a new cronjob for the worker.