Skip to content

LSIF: Re-enable dump cleanup

Administrator requested to merge lsif-clean-uploads-task into master

Created by: efritz

https://github.com/sourcegraph/sourcegraph/pull/7486 removed the call to purgeOldDumps, which makes the cleanup code dead in the eyes of the worker.

This moves the cleanup of dead and outdated dumps to the server, where it is instead run on a schedule. This tasks removes the oldest uploads when the disk is above a configured threshold, and also removes databases that are no longer referenced inside of the postgres db.

Merge request reports

Loading