mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 12:03:35 +08:00
14 lines
269 B
Ruby
14 lines
269 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Jobs
|
|
|
|
class EnsureS3UploadsExistence < Jobs::Scheduled
|
|
every 1.day
|
|
|
|
def execute(args)
|
|
return unless SiteSetting.enable_s3_inventory
|
|
Discourse.store.list_missing_uploads(skip_optimized: true)
|
|
end
|
|
end
|
|
end
|