aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
authorJohan Van Ryseghem2018-02-13 09:08:18 +0100
committerGitHub2018-02-13 09:08:18 +0100
commit81cb1f8251e3506f7c75a229aabeaba3a83e6d8a (patch)
tree1f35d87dba085495d31cf4588e67e3c3fa15089d /lib/tasks
parent551c1117a4b9872c99508da71427f5a28fc31ddc (diff)
parent2e346505cbf2f82c5aaf6fca37966a39b6c9656c (diff)
downloadchouette-core-81cb1f8251e3506f7c75a229aabeaba3a83e6d8a.tar.bz2
Merge pull request #287 from af83/4963-import-cron-should-abort-old-imports
4963 import cron should abort old imports
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/imports.rake5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tasks/imports.rake b/lib/tasks/imports.rake
index 55e017e7f..02e32fd3d 100644
--- a/lib/tasks/imports.rake
+++ b/lib/tasks/imports.rake
@@ -3,4 +3,9 @@ namespace :import do
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