Add purge stale export job

This commit is contained in:
simon lehericey 2019-11-27 14:56:08 +01:00
parent d0939ae1a4
commit ce7ab89934
3 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,8 @@
namespace :after_party do
desc 'Deployment task: enable_export_purge'
task enable_export_purge: :environment do
PurgeStaleExportsJob.set(cron: "*/5 * * * *").perform_later
AfterParty::TaskRecord.create version: '20191127135401'
end
end