Skip to content

Be a bit more aggresive when cleaning up runners#660

Merged
gabriel-samfira merged 1 commit intocloudbase:mainfrom
gabriel-samfira:fix-orphan-runner-cleanup-agent-mode
Mar 7, 2026
Merged

Be a bit more aggresive when cleaning up runners#660
gabriel-samfira merged 1 commit intocloudbase:mainfrom
gabriel-samfira:fix-orphan-runner-cleanup-agent-mode

Conversation

@gabriel-samfira
Copy link
Member

In agent mode, we update the DB entity regularly with heartbeats. This gives us a clue that the instance is still up in the IaaS and we can access it via the agent if we need to, but it also means that we can no longer rely on UpdatedAt to know if a runner is still being installed.

Instead, we obey the pool/scaleset runner bootstrap timeout. If the runner is not present in the forge after the timeout, we consider it failed and remove it.

The agent will be updated to check for more offline statuses.

GARM will also be updated to do additional checks for agent enabled runners and cross check those runners against the forge to see if they are still registered.

In agent mode, we update the DB entity regularly with heartbeats. This
gives us a clue that the instance is still up in the IaaS and we can access
it via the agent if we need to, but it also means that we can no longer rely
on UpdatedAt to know if a runner is still being installed.

Instead, we obey the pool/scaleset runner bootstrap timeout. If the runner
is not present in the forge after the timeout, we consider it failed and
remove it.

The agent will be updated to check for more offline statuses.

GARM will also be updated to do additional checks for agent enabled runners
and cross check those runners against the forge to see if they are still
registered.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
@gabriel-samfira gabriel-samfira merged commit 23dbe2d into cloudbase:main Mar 7, 2026
4 checks passed
@gabriel-samfira gabriel-samfira deleted the fix-orphan-runner-cleanup-agent-mode branch March 7, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant