Commit 1f6acbed authored by Sean Arnold's avatar Sean Arnold

Use find_each instead of find_in_batches

parent 36d910a8
...@@ -9,10 +9,8 @@ module IncidentManagement ...@@ -9,10 +9,8 @@ module IncidentManagement
feature_category :incident_management feature_category :incident_management
def perform def perform
IssuableSla.exceeded_for_issues.find_in_batches do |incident_slas| IssuableSla.exceeded_for_issues.find_each do |incident_sla|
incident_slas.each do |incident_sla| ApplyIncidentSlaExceededLabelWorker.perform_async(incident_sla.issue_id)
ApplyIncidentSlaExceededLabelWorker.perform_async(incident_sla.issue_id)
end
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment