Skip to content

Commit

Permalink
bump up message priorities slightly
Browse files Browse the repository at this point in the history
still lower than normal priority, but above other lower priority
jobs like Course#recache_grade_distributions

Change-Id: Ia1235ee36ac89565c81da2d504056c43d2129851
Reviewed-on: https://gerrit.instructure.com/164670
Reviewed-by: James Williams  <[email protected]>
Tested-by: Jenkins
Product-Review: Cody Cutrer <[email protected]>
QA-Review: Cody Cutrer <[email protected]>
  • Loading branch information
ccutrer committed Sep 17, 2018
1 parent 7bd5a97 commit 8412adb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/message_dispatcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class MessageDispatcher < Delayed::PerformableMethod
def self.dispatch(message)
Delayed::Job.enqueue(self.new(message, :deliver),
run_at: message.dispatch_at,
priority: 30,
priority: 25,
max_attempts: 15)
end

Expand All @@ -35,7 +35,7 @@ def self.batch_dispatch(messages)

Delayed::Job.enqueue(self.new(self, :deliver_batch, [messages]),
run_at: messages.first.dispatch_at,
priority: 30,
priority: 25,
max_attempts: 15)
end

Expand Down

0 comments on commit 8412adb

Please sign in to comment.