diff options
Diffstat (limited to 'app/workers/gitlab/github_import')
-rw-r--r-- | app/workers/gitlab/github_import/stage/finish_import_worker.rb | 4 | ||||
-rw-r--r-- | app/workers/gitlab/github_import/stage/import_repository_worker.rb | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/app/workers/gitlab/github_import/stage/finish_import_worker.rb b/app/workers/gitlab/github_import/stage/finish_import_worker.rb index a779e631516..ee64f62637e 100644 --- a/app/workers/gitlab/github_import/stage/finish_import_worker.rb +++ b/app/workers/gitlab/github_import/stage/finish_import_worker.rb @@ -8,6 +8,10 @@ module Gitlab include GithubImport::Queue include StageMethods + # technical debt: https://gitlab.com/gitlab-org/gitlab/issues/33991 + sidekiq_options memory_killer_memory_growth_kb: ENV.fetch('MEMORY_KILLER_FINISH_IMPORT_WORKER_MEMORY_GROWTH_KB', 50).to_i + sidekiq_options memory_killer_max_memory_growth_kb: ENV.fetch('MEMORY_KILLER_FINISH_IMPORT_WORKER_MAX_MEMORY_GROWTH_KB', 200_000).to_i + # project - An instance of Project. def import(_, project) project.after_import diff --git a/app/workers/gitlab/github_import/stage/import_repository_worker.rb b/app/workers/gitlab/github_import/stage/import_repository_worker.rb index 4d16cef1130..b5e30470070 100644 --- a/app/workers/gitlab/github_import/stage/import_repository_worker.rb +++ b/app/workers/gitlab/github_import/stage/import_repository_worker.rb @@ -8,6 +8,10 @@ module Gitlab include GithubImport::Queue include StageMethods + # technical debt: https://gitlab.com/gitlab-org/gitlab/issues/33991 + sidekiq_options memory_killer_memory_growth_kb: ENV.fetch('MEMORY_KILLER_IMPORT_REPOSITORY_WORKER_MEMORY_GROWTH_KB', 50).to_i + sidekiq_options memory_killer_max_memory_growth_kb: ENV.fetch('MEMORY_KILLER_IMPORT_REPOSITORY_WORKER_MAX_MEMORY_GROWTH_KB', 300_000).to_i + # client - An instance of Gitlab::GithubImport::Client. # project - An instance of Project. def import(client, project) |