Fix assignment missing periodic job

Refs MBL-10482

Test Plan:
 - Create an observer alert threshold for
   assignment_missing between an observer and student
 - Create an assignment that is due in 1-2 minutes
 - Wait at least 5 minutes
 - Hit /api/v1/users/self/observer_alerts
 - An assignment_missing alert should exist

Change-Id: I7936d1eb7bcf347a776c3d0af675e61f5c25db98
Reviewed-on: https://gerrit.instructure.com/153446
Reviewed-by: Nate Armstrong <narmstrong@instructure.com>
QA-Review: Nate Armstrong <narmstrong@instructure.com>
Tested-by: Jenkins
Product-Review: Matthew Sessions <msessions@instructure.com>
This commit is contained in:
Matt Sessions 2018-06-12 09:05:50 -06:00 committed by Matthew Sessions
parent 092e54f13a
commit c97d6a5887
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ Rails.configuration.after_initialize do
end
Delayed::Periodic.cron 'ObserverAlert.create_assignment_missing_alerts', '*/5 * * * *', priority: Delayed::LOW_PRIORITY do
with_each_shard_by_database(ObserverAlert, :create_missing_assignment_alerts)
with_each_shard_by_database(ObserverAlert, :create_assignment_missing_alerts)
end
Delayed::Periodic.cron 'abandoned job cleanup', '*/10 * * * *' do