Commit 19368f19 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch 'add-worker-context-for-imports' into 'master'

Add Sidekiq worker context for project imports

See merge request gitlab-org/gitlab!38698
parents d4640473 7fc6d5f6
......@@ -55,13 +55,11 @@ module Projects
save_project_and_import_data
if @project.persisted?
Gitlab::ApplicationContext.with_context(related_class: "Projects::CreateService", project: @project) do
after_create_actions
end
end
Gitlab::ApplicationContext.with_context(related_class: "Projects::CreateService", project: @project) do
after_create_actions if @project.persisted?
import_schedule
import_schedule
end
@project
rescue ActiveRecord::RecordInvalid => e
......
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