diff options
author | Robert Speicher <robert@gitlab.com> | 2017-02-02 21:11:03 +0300 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2017-02-02 21:11:03 +0300 |
commit | e3a5f1df29ca09797217d90af4ce0086a66fcd8d (patch) | |
tree | 1ea6c5758775e55cbd2fc2a79f5e5e806a860920 | |
parent | 3997e6723c78e6c374764f5f24180ce8114592f5 (diff) | |
parent | 89a2438ab44862b34ba1030761c27b37059389ca (diff) |
Merge branch '27516-fix-wrong-call-to-project_cache_worker-method' into 'master'
Fix wrong call to ProjectCacheWorker.perform, and call ProjectCacheWorker.perform_async instead
Closes #27516
See merge request !8910
-rw-r--r-- | changelogs/unreleased/27516-fix-wrong-call-to-project_cache_worker-method.yml | 4 | ||||
-rw-r--r-- | lib/tasks/gitlab/import.rake | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/changelogs/unreleased/27516-fix-wrong-call-to-project_cache_worker-method.yml b/changelogs/unreleased/27516-fix-wrong-call-to-project_cache_worker-method.yml new file mode 100644 index 00000000000..bc990c66866 --- /dev/null +++ b/changelogs/unreleased/27516-fix-wrong-call-to-project_cache_worker-method.yml @@ -0,0 +1,4 @@ +--- +title: Fix wrong call to ProjectCacheWorker.perform +merge_request: 8910 +author: diff --git a/lib/tasks/gitlab/import.rake b/lib/tasks/gitlab/import.rake index a2eca74a3c8..036a9307ab5 100644 --- a/lib/tasks/gitlab/import.rake +++ b/lib/tasks/gitlab/import.rake @@ -63,7 +63,7 @@ namespace :gitlab do if project.persisted? puts " * Created #{project.name} (#{repo_path})".color(:green) - ProjectCacheWorker.perform(project.id) + ProjectCacheWorker.perform_async(project.id) else puts " * Failed trying to create #{project.name} (#{repo_path})".color(:red) puts " Errors: #{project.errors.messages}".color(:red) |