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
This commit is contained in:
Robert Speicher 2017-02-02 18:11:03 +00:00
commit e3a5f1df29
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
---
title: Fix wrong call to ProjectCacheWorker.perform
merge_request: 8910
author:

View File

@ -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)