Skip to content

Delete up to 1000 stopped review app environments

Marcel Amirault requested to merge fix-delete-stop-environments-job into main

I was checking the review app environments and was surprised to see we had over 1k environments. I implemented a monthly job to clean them up, so I thought we should have less: https://gitlab.com/gitlab-org/gitlab-docs/-/environments/folders/review?scope=stopped&page=1&nested=true

Checking the log, I now remember that this endpoint defaults to 100 per run (100 per month, therefore), which isn't fast enough: https://gitlab.com/gitlab-org/gitlab-docs/-/jobs/3113399190

This ups the limit to 1000, as per: https://docs.gitlab.com/ee/api/environments.html#delete-multiple-stopped-review-apps

Edited by Marcel Amirault

Merge request reports

Loading