blob: 02e32fd3d57249d34bb47936f3ea2a8e49ece1bf (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
 | namespace :import do
  desc "Notify parent imports when children finish"
  task notify_parent: :environment do
    ParentNotifier.new(Import).notify_when_finished
  end
  desc "Mark old unfinished Netex imports as 'aborted'"
  task netex_abort_old: :environment do
    NetexImport.abort_old
  end
end
 |