5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 01:16:23 +00:00
panel/lib/tasks/cleanup.rake
f ae7481550a
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat: hacer limpieza de emergencia #12854
2023-04-10 12:37:30 -03:00

10 lines
222 B
Ruby

# frozen_string_literal: true
namespace :cleanup do
desc 'Cleanup sites'
task everything: :environment do |_, args|
before = ENV.fetch('BEFORE', '30').to_i.days.ago
CleanupJob.perform_later(before)
end
end