diff options
Diffstat (limited to 'app/workers/issue_placement_worker.rb')
-rw-r--r-- | app/workers/issue_placement_worker.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/workers/issue_placement_worker.rb b/app/workers/issue_placement_worker.rb index cfd72b90a42..26dec221f45 100644 --- a/app/workers/issue_placement_worker.rb +++ b/app/workers/issue_placement_worker.rb @@ -1,5 +1,8 @@ # frozen_string_literal: true +# DEPRECATED. Will be removed in 14.7 https://gitlab.com/gitlab-org/gitlab/-/merge_requests/72803 +# Please use Issues::PlacementWorker instead +# # todo: remove this worker and it's queue definition from all_queues after Issues::PlacementWorker is deployed # We want to keep it for one release in case some jobs are already scheduled in the old queue so we need the worker # to be available to finish those. All new jobs will be queued into the new queue. @@ -43,10 +46,10 @@ class IssuePlacementWorker Issue.move_nulls_to_end(to_place) Issues::BaseService.new(project: nil).rebalance_if_needed(to_place.max_by(&:relative_position)) - IssuePlacementWorker.perform_async(nil, leftover.project_id) if leftover.present? + Issues::PlacementWorker.perform_async(nil, leftover.project_id) if leftover.present? rescue RelativePositioning::NoSpaceLeft => e Gitlab::ErrorTracking.log_exception(e, issue_id: issue_id, project_id: project_id) - IssueRebalancingWorker.perform_async(nil, *root_namespace_id_to_rebalance(issue, project_id)) + Issues::RebalancingWorker.perform_async(nil, *root_namespace_id_to_rebalance(issue, project_id)) end def find_issue(issue_id, project_id) |