diff options
| author | Johan Van Ryseghem | 2018-02-13 08:48:35 +0100 | 
|---|---|---|
| committer | GitHub | 2018-02-13 08:48:35 +0100 | 
| commit | 54414ddb8970ee6133817777290153a713834285 (patch) | |
| tree | 6b36b1f3a510048bee807864045bb0202a66c378 /lib | |
| parent | 1a565ed97d98183585c465daee5360526c8738c8 (diff) | |
| parent | f6bc7ad342c19393d364341b3e753154df78a295 (diff) | |
| download | chouette-core-54414ddb8970ee6133817777290153a713834285.tar.bz2 | |
Merge pull request #291 from af83/4758-cron-job-to-finalise-compliance_check_set-validations--
4758 cron job to finalise compliance check set validations  
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/tasks/compliance_check_sets.rb | 11 | ||||
| -rw-r--r-- | lib/tasks/imports.rake | 2 | 
2 files changed, 12 insertions, 1 deletions
diff --git a/lib/tasks/compliance_check_sets.rb b/lib/tasks/compliance_check_sets.rb new file mode 100644 index 000000000..c53c7f9ed --- /dev/null +++ b/lib/tasks/compliance_check_sets.rb @@ -0,0 +1,11 @@ +namespace :compliance_check_sets do +  desc "Notify parent check sets when children finish" +  task notify_parent: :environment do +    ParentNotifier.new(ComplianceCheckSet).notify_when_finished +  end + +  desc "Mark old unfinished check sets as 'aborted'" +  task abort_old: :environment do +    ComplianceCheckSet.abort_old +  end +end diff --git a/lib/tasks/imports.rake b/lib/tasks/imports.rake index 6bc84acc8..55e017e7f 100644 --- a/lib/tasks/imports.rake +++ b/lib/tasks/imports.rake @@ -1,6 +1,6 @@  namespace :import do    desc "Notify parent imports when children finish"    task notify_parent: :environment do -    ParentImportNotifier.notify_when_finished +    ParentNotifier.new(Import).notify_when_finished    end  end  | 
