ee/app/services/geo/files_expire_service.rb
# Expire already replicated uploads
#
# This is a fallback solution to support projects that haven't rolled out to hashed-storage yet.
#
# Note: Unless we add some locking mechanism, this will be best effort only
# as if there are files that are being replicated during this execution, they will not
# be expired.
#
# The long-term solution is to use hashed storage.
Expire already replicated uploads
This is a fallback solution to support projects that haven't rolled out to hashed-storage yet.

Unless we add some locking mechanism, this will be best effort only
as if there are files that are being replicated during this execution, they will not
be expired.

The long-term solution is to use hashed storage.
Expire already replicated uploads This is a fallback solution to support projects that haven ' t rolled out to hashed - storage yet . Unless we add some locking mechanism this will be best effort only as if there are files that are being replicated during this execution they will not be expired . The long - term solution is to use hashed storage .
def execute
      return unless Gitlab::Geo.secondary?
      uploads = finder.find_project_uploads(project)
      log_info("Expiring replicated attachments after project rename", count: uploads.count)
      schedule_file_removal(uploads)
      mark_for_resync!
    end
def execute return unless Gitlab :: Geo . secondary? uploads = finder . find_project_uploads ( project ) log_info ( "Expiring replicated attachments after project rename" , count : uploads . count ) schedule_file_removal ( uploads ) mark_for_resync! end
Expire already replicated uploads
This is a fallback solution to support projects that haven't rolled out to hashed-storage yet.
Expire already replicated uploads This is a fallback solution to support projects that haven ' t rolled out to hashed - storage yet .