Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a294a60a
Commit
a294a60a
authored
Dec 16, 2019
by
nmilojevic1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable RequestStore for import.rake
parent
262bcdd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
lib/tasks/gitlab/import_export/import.rake
lib/tasks/gitlab/import_export/import.rake
+12
-3
No files found.
lib/tasks/gitlab/import_export/import.rake
View file @
a294a60a
...
...
@@ -64,16 +64,25 @@ class GitlabProjectImport
private
def
with_request_store
RequestStore
.
begin!
yield
ensure
RequestStore
.
end!
RequestStore
.
clear!
end
# We want to ensure that all Sidekiq jobs are executed
# synchronously as part of that process.
# This ensures that all expensive operations do not escape
# to general Sidekiq clusters/nodes.
def
run_isolated_sidekiq_job
Sidekiq
::
Testing
.
fake!
do
@project
=
create_project
execute_sidekiq_job
with_request_store
do
@project
=
create_project
execute_sidekiq_job
end
true
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment