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
feature_category :incident_management
def perform
IssuableSla.exceeded_for_issues.find_in_batches do |incident_slas|
incident_slas.each do |incident_sla|
ApplyIncidentSlaExceededLabelWorker.perform_async(incident_sla.issue_id)
end
IssuableSla.exceeded_for_issues.find_each do |incident_sla|
ApplyIncidentSlaExceededLabelWorker.perform_async(incident_sla.issue_id)
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