Wondering if there is a feature planned to help auto-clean up act-runners that appear under the Runners Management console?
It would be useful to be able to clean up by some combination of:
- last seen date
- regex on name
- regex on labels
Or is there a way an act-runner can de-register intentionally when they shut down?
My use case is where act-runners are pods in a cluster. Sometimes they shuffle around or scale up and down. They register with a k8s pod name so they often come back with a new name, new registration.
I can foresee aside from being annoying, this will fill up the database of known act runners over time.
Here is an example of the type of (temporary) act runner registration…
1 Like
I would also like to have a feature like this as I recently made a configuration mistake and ended up with over 100 runners that never ran and removed them one by one manually.
Hi @oderwat/anyone here from google, I had a similar problem and managed to bulk remove them by exec
ing into the postgres docker container- hacky but works if you’re self-hosting:
psql -d gitea gitea -c "update action_runner set deleted = 1 where id != 1"
The column deleted
is default NULL and type bigint
which I assume represents delete time, but setting it to any non-zero integer will remove it from the gitea UI. Pick a suitable where
clause for your situation, you can check available column names and types with
psql -d gitea gitea -c "select column_name, data_type from information_schema.columns where table_name = 'action_runner'"