Commit 469169ef authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'sh-fix-sidekiq-testing' into 'master'

Fix Sidekiq testing API warnings in Rake tasks

Closes #38377

See merge request gitlab-org/gitlab!21343
parents a4a81455 8a0c5a13
......@@ -9,12 +9,13 @@
# @example
# bundle exec rake "gitlab:import_export:import[root, root, imported_project, /path/to/file.tar.gz]"
#
require 'sidekiq/testing'
namespace :gitlab do
namespace :import_export do
desc 'EXPERIMENTAL | Import large project archives'
task :import, [:username, :namespace_path, :project_path, :archive_path] => :gitlab_environment do |_t, args|
# Load it here to avoid polluting Rake tasks with Sidekiq test warnings
require 'sidekiq/testing'
warn_user_is_not_gitlab
if ENV['IMPORT_DEBUG'].present?
......
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