New cron.* maintenance to cleanup action job/run/task tables #25923
Labels
issue/duplicate
The issue has already been reported.
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Feature Description
I'm testing the new Gitea Actions feature (I know, it's still a preview, but it works great for me...) and I've filled up Actions log with hundreds of (now useless) test runs.
I see there's no way to cleanup them other than straight access to DB.
The existing
cron.delete_old_actions
only deletes repo user actions (like pushes, issue close, ...) but does not cleanup the CI/CD Actions log.Should be great to have a new maintenance job to cleanup
actions_job
,actions_run
andaction_task
tables as like as the existingcron.delete_old_actions
maintenance task cleans up theactions
table.I think there's no need to keep that history forever, at least in small & personal Gitea instances.
An alternative could be to extend the existing
cron.delete_old_actions
task to cleanup those tables too, maybe with different run parameters.The text was updated successfully, but these errors were encountered: