Open
Description
Feature Description
Jobs that have been done for too long no longer need to retain data/log, so it is necessary to regularly clean them up.
- Log file: Delete Actions logs older than 1 year by default #31735
- Outputs.
- Artifacts: Artifacts retention and auto clean up #26131
- Old raws in job/run/task tables
- And more?
Details
#26275 (comment) : Some logic which could help:
- What you want delete is a
run
, so you need to delete a row ofActionRun
. - A
run
could include multiplejobs
, so you need to delete multiple rows ofActionRunJob
. - When a
job
has been picked up by a runner to execute, there will be atask
, however, ajob
could be rerun many times, so you need to delete multiple rows ofActionTask
. - Every
task
could include- multiple
steps
, soActionTaskStep
- multiple
outputs
, soActionTaskOutput
- multiple
- The log of the
task
is stored as a file (in DBFS or storage), so you need to detele it according toActionTask.LogFilename
orActionTask.LogInStorage
. - In addition, there may be some
artifacts
uploaded to therun
, so you need to delete multiple rows ofActionArtifact
.- The files of
artifacts
are stored in storage, so you need to remove them.
- The files of
- Finally, update
NumActionRuns
andNumClosedActionRuns
ofRepository
.