30d7cf634a
Turns out deleting the tasks after 6 months only may not be enough for instances deploying
only once a year, for instance.
This reverts commit 77b65f3aa0
.
10 lines
312 B
Ruby
10 lines
312 B
Ruby
namespace :after_party do
|
|
desc 'Deployment task: cleanup_deleted_dossiers'
|
|
task cleanup_deleted_dossiers: :environment do
|
|
puts "Running deploy task 'cleanup_deleted_dossiers'"
|
|
|
|
DeletedDossier.where(state: :brouillon).destroy_all
|
|
|
|
AfterParty::TaskRecord.create version: '20200326133630'
|
|
end
|
|
end
|