Skip to content
代码片段 群组 项目
未验证 提交 a56bc048 编辑于 作者: George Koltsov's avatar George Koltsov 提交者: GitLab
浏览文件

Merge branch '433326-bump-retries-for-stage-workers-and-advance-stage-workers' into 'master'

Increase retries for Stage & AdvanceStage workers

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/141734



Merged-by: default avatarGeorge Koltsov <gkoltsov@gitlab.com>
Approved-by: default avatarGeorge Koltsov <gkoltsov@gitlab.com>
Approved-by: default avatarCarla Drago <cdrago@gitlab.com>
Co-authored-by: default avatarLuke Duncalfe <lduncalfe@eml.cc>
No related branches found
No related tags found
无相关合并请求
显示 34 个添加37 个删除
...@@ -14,7 +14,7 @@ module StageMethods ...@@ -14,7 +14,7 @@ module StageMethods
data_consistency :always data_consistency :always
sidekiq_options dead: false, retry: 3 sidekiq_options dead: false, retry: 6
sidekiq_retries_exhausted do |msg, e| sidekiq_retries_exhausted do |msg, e|
Gitlab::Import::ImportFailureService.track( Gitlab::Import::ImportFailureService.track(
......
...@@ -14,7 +14,7 @@ module StageMethods ...@@ -14,7 +14,7 @@ module StageMethods
data_consistency :always data_consistency :always
sidekiq_options dead: false, retry: 3 sidekiq_options dead: false, retry: 6
sidekiq_retries_exhausted do |msg, e| sidekiq_retries_exhausted do |msg, e|
Gitlab::Import::ImportFailureService.track( Gitlab::Import::ImportFailureService.track(
......
...@@ -8,9 +8,9 @@ module ImportWorker ...@@ -8,9 +8,9 @@ module ImportWorker
included do included do
include ApplicationWorker include ApplicationWorker
sidekiq_options retry: 3
include ProjectImportOptions include ProjectImportOptions
include Gitlab::JiraImport::QueueOptions include Gitlab::JiraImport::QueueOptions
sidekiq_options retry: 6
end end
def perform(project_id) def perform(project_id)
......
...@@ -12,10 +12,6 @@ class AdvanceStageWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -12,10 +12,6 @@ class AdvanceStageWorker # rubocop:disable Scalability/IdempotentWorker
data_consistency :delayed data_consistency :delayed
sidekiq_options dead: false, retry: 3
feature_category :importers
loggable_arguments 1, 2 loggable_arguments 1, 2
# The known importer stages and their corresponding Sidekiq workers. # The known importer stages and their corresponding Sidekiq workers.
......
...@@ -12,10 +12,6 @@ class AdvanceStageWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -12,10 +12,6 @@ class AdvanceStageWorker # rubocop:disable Scalability/IdempotentWorker
data_consistency :delayed data_consistency :delayed
sidekiq_options dead: false, retry: 3
feature_category :importers
loggable_arguments 1, 2 loggable_arguments 1, 2
# The known importer stages and their corresponding Sidekiq workers. # The known importer stages and their corresponding Sidekiq workers.
......
...@@ -14,8 +14,6 @@ class AdvanceStageWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -14,8 +14,6 @@ class AdvanceStageWorker # rubocop:disable Scalability/IdempotentWorker
include ::Gitlab::Import::AdvanceStage include ::Gitlab::Import::AdvanceStage
loggable_arguments 1, 2 loggable_arguments 1, 2
sidekiq_options retry: 6, dead: false
feature_category :importers
# The known importer stages and their corresponding Sidekiq workers. # The known importer stages and their corresponding Sidekiq workers.
# #
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
module Gitlab module Gitlab
module Import module Import
module AdvanceStage module AdvanceStage
extend ActiveSupport::Concern
INTERVAL = 30.seconds.to_i INTERVAL = 30.seconds.to_i
TIMEOUT_DURATION = 2.hours TIMEOUT_DURATION = 2.hours
...@@ -12,6 +14,11 @@ module AdvanceStage ...@@ -12,6 +14,11 @@ module AdvanceStage
# continuing to the next waiter. # continuing to the next waiter.
BLOCKING_WAIT_TIME = 5 BLOCKING_WAIT_TIME = 5
included do
sidekiq_options dead: false, retry: 6
feature_category :importers
end
# project_id - The ID of the project being imported. # project_id - The ID of the project being imported.
# waiters - A Hash mapping Gitlab::JobWaiter keys to the number of # waiters - A Hash mapping Gitlab::JobWaiter keys to the number of
# remaining jobs. # remaining jobs.
......
...@@ -7,7 +7,6 @@ class AdvanceStageWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -7,7 +7,6 @@ class AdvanceStageWorker # rubocop:disable Scalability/IdempotentWorker
data_consistency :always data_consistency :always
sidekiq_options retry: 3
include QueueOptions include QueueOptions
include ::Gitlab::Import::AdvanceStage include ::Gitlab::Import::AdvanceStage
......
...@@ -8,11 +8,12 @@ class StartImportWorker # rubocop:disable Scalability/IdempotentWorker ...@@ -8,11 +8,12 @@ class StartImportWorker # rubocop:disable Scalability/IdempotentWorker
data_consistency :always data_consistency :always
sidekiq_options retry: 3
include ProjectStartImport include ProjectStartImport
include ProjectImportOptions include ProjectImportOptions
include Gitlab::JiraImport::QueueOptions include Gitlab::JiraImport::QueueOptions
sidekiq_options retry: 6
attr_reader :project attr_reader :project
def perform(project_id) def perform(project_id)
......
...@@ -247,21 +247,21 @@ ...@@ -247,21 +247,21 @@
'Geo::VerificationStateBackfillWorker' => false, 'Geo::VerificationStateBackfillWorker' => false,
'Geo::VerificationTimeoutWorker' => false, 'Geo::VerificationTimeoutWorker' => false,
'Geo::VerificationWorker' => 3, 'Geo::VerificationWorker' => 3,
'Gitlab::BitbucketImport::AdvanceStageWorker' => 3, 'Gitlab::BitbucketImport::AdvanceStageWorker' => 6,
'Gitlab::BitbucketImport::Stage::FinishImportWorker' => 3, 'Gitlab::BitbucketImport::Stage::FinishImportWorker' => 6,
'Gitlab::BitbucketImport::Stage::ImportIssuesWorker' => 3, 'Gitlab::BitbucketImport::Stage::ImportIssuesWorker' => 6,
'Gitlab::BitbucketImport::Stage::ImportIssuesNotesWorker' => 3, 'Gitlab::BitbucketImport::Stage::ImportIssuesNotesWorker' => 6,
'Gitlab::BitbucketImport::Stage::ImportLfsObjectsWorker' => 3, 'Gitlab::BitbucketImport::Stage::ImportLfsObjectsWorker' => 6,
'Gitlab::BitbucketImport::Stage::ImportPullRequestsWorker' => 3, 'Gitlab::BitbucketImport::Stage::ImportPullRequestsWorker' => 6,
'Gitlab::BitbucketImport::Stage::ImportPullRequestsNotesWorker' => 3, 'Gitlab::BitbucketImport::Stage::ImportPullRequestsNotesWorker' => 6,
'Gitlab::BitbucketImport::Stage::ImportRepositoryWorker' => 3, 'Gitlab::BitbucketImport::Stage::ImportRepositoryWorker' => 6,
'Gitlab::BitbucketServerImport::AdvanceStageWorker' => 3, 'Gitlab::BitbucketServerImport::AdvanceStageWorker' => 6,
'Gitlab::BitbucketServerImport::Stage::FinishImportWorker' => 3, 'Gitlab::BitbucketServerImport::Stage::FinishImportWorker' => 6,
'Gitlab::BitbucketServerImport::Stage::ImportLfsObjectsWorker' => 3, 'Gitlab::BitbucketServerImport::Stage::ImportLfsObjectsWorker' => 6,
'Gitlab::BitbucketServerImport::Stage::ImportNotesWorker' => 3, 'Gitlab::BitbucketServerImport::Stage::ImportNotesWorker' => 6,
'Gitlab::BitbucketServerImport::Stage::ImportPullRequestsWorker' => 3, 'Gitlab::BitbucketServerImport::Stage::ImportPullRequestsWorker' => 6,
'Gitlab::BitbucketServerImport::Stage::ImportRepositoryWorker' => 3, 'Gitlab::BitbucketServerImport::Stage::ImportRepositoryWorker' => 6,
'Gitlab::BitbucketServerImport::Stage::ImportUsersWorker' => 3, 'Gitlab::BitbucketServerImport::Stage::ImportUsersWorker' => 6,
'Gitlab::GithubImport::AdvanceStageWorker' => 6, 'Gitlab::GithubImport::AdvanceStageWorker' => 6,
'Gitlab::GithubImport::Attachments::ImportReleaseWorker' => 5, 'Gitlab::GithubImport::Attachments::ImportReleaseWorker' => 5,
'Gitlab::GithubImport::Attachments::ImportNoteWorker' => 5, 'Gitlab::GithubImport::Attachments::ImportNoteWorker' => 5,
...@@ -297,14 +297,14 @@ ...@@ -297,14 +297,14 @@
'Gitlab::GithubGistsImport::ImportGistWorker' => 5, 'Gitlab::GithubGistsImport::ImportGistWorker' => 5,
'Gitlab::GithubGistsImport::StartImportWorker' => 5, 'Gitlab::GithubGistsImport::StartImportWorker' => 5,
'Gitlab::GithubGistsImport::FinishImportWorker' => 5, 'Gitlab::GithubGistsImport::FinishImportWorker' => 5,
'Gitlab::JiraImport::AdvanceStageWorker' => 5, 'Gitlab::JiraImport::AdvanceStageWorker' => 6,
'Gitlab::JiraImport::ImportIssueWorker' => 5, 'Gitlab::JiraImport::ImportIssueWorker' => 5,
'Gitlab::JiraImport::Stage::FinishImportWorker' => 5, 'Gitlab::JiraImport::Stage::FinishImportWorker' => 6,
'Gitlab::JiraImport::Stage::ImportAttachmentsWorker' => 5, 'Gitlab::JiraImport::Stage::ImportAttachmentsWorker' => 6,
'Gitlab::JiraImport::Stage::ImportIssuesWorker' => 5, 'Gitlab::JiraImport::Stage::ImportIssuesWorker' => 6,
'Gitlab::JiraImport::Stage::ImportLabelsWorker' => 5, 'Gitlab::JiraImport::Stage::ImportLabelsWorker' => 6,
'Gitlab::JiraImport::Stage::ImportNotesWorker' => 5, 'Gitlab::JiraImport::Stage::ImportNotesWorker' => 6,
'Gitlab::JiraImport::Stage::StartImportWorker' => 5, 'Gitlab::JiraImport::Stage::StartImportWorker' => 6,
'GitlabPerformanceBarStatsWorker' => 3, 'GitlabPerformanceBarStatsWorker' => 3,
'GitlabSubscriptions::RefreshSeatsWorker' => 0, 'GitlabSubscriptions::RefreshSeatsWorker' => 0,
'GitlabSubscriptions::AddOnPurchases::BulkRefreshUserAssignmentsWorker' => 0, 'GitlabSubscriptions::AddOnPurchases::BulkRefreshUserAssignmentsWorker' => 0,
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册