mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-24 22:42:27 -05:00
e1f293ad66
Removed sidetiq, introduced new scheduler - add basic UI - add schedule discover - add scheduling in initializer
13 lines
243 B
Ruby
13 lines
243 B
Ruby
module Jobs
|
|
|
|
class PurgeDeletedUploads < Jobs::Scheduled
|
|
every 1.day
|
|
|
|
def execute(args)
|
|
grace_period = SiteSetting.purge_deleted_uploads_grace_period_days
|
|
Discourse.store.purge_tombstone(grace_period)
|
|
end
|
|
|
|
end
|
|
|
|
end
|