Commit 029d6152 authored by Alex Kalderimis's avatar Alex Kalderimis

Add worker queue definition

This adds the required worker queue definition for sidekiq, with its
configuration and generated defintion.
parent 4982354c
......@@ -1436,6 +1436,14 @@
:weight: 1
:idempotent:
:tags: []
- :name: issue_rebalancing
:feature_category: :issue_tracking
:has_external_dependencies:
:urgency: :low
:resource_boundary: :unknown
:weight: 1
:idempotent: true
:tags: []
- :name: mailers
:feature_category:
:has_external_dependencies:
......
......@@ -3,11 +3,15 @@
class IssueRebalancingWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
idempotent!
urgency :low
feature_category :issue_tracking
def perform(issue_id)
issue = Issue.find(issue_id)
rebalance(issue)
rescue ActiveRecord::RecordNotFound => e
rescue ActiveRecord::RecordNotFound, IssueRebalancingService::TooManyIssues, RelativePositioning::NoSpaceLeft => e
Sidekiq.logger.warn(e)
end
......
......@@ -138,6 +138,8 @@
- 2
- - irker
- 1
- - issue_rebalancing
- 1
- - jira_connect
- 1
- - jira_importer
......
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