diff options
| author | cedricnjanga | 2018-05-09 06:51:43 -0700 |
|---|---|---|
| committer | Johan Van Ryseghem | 2018-05-28 16:20:55 +0200 |
| commit | 547f8a408883a36f91b1335b67bb9c22de7fbca8 (patch) | |
| tree | 3e7babc4474db260c1d997b508a7fba4681f958c /config | |
| parent | 7f8d45156a9557bb314ada4f6e015d20556302c0 (diff) | |
| download | chouette-core-547f8a408883a36f91b1335b67bb9c22de7fbca8.tar.bz2 | |
Refs #6962 Add Cron class
Diffstat (limited to 'config')
| -rw-r--r-- | config/schedule.rb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/config/schedule.rb b/config/schedule.rb index 0d2a24f31..e5ab2556d 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -28,25 +28,23 @@ set :NEW_RELIC_LOG, 'stdout' set :job_template, "/bin/bash -c ':job'" every :hour do - rake "organisations:sync" - rake "users:sync" + Cron.sync_organizations + Cron.sync_users end every :day, :at => '3:00am' do - rake "reflex:sync" + Cron.sync_reflex end every :day, :at => '4:00 am' do - rake "codifligne:sync" + Cron.sync_codifligne end every 5.minutes do - rake "import:netex_abort_old" - rake "import:notify_parent" + Cron.check_import_operations end every 5.minutes do - rake "compliance_check_sets:abort_old" - rake "compliance_check_sets:notify_parent" + Cron.check_ccset_operations end every 1.minute do |
