Fix wrong call to ProjectCacheWorker.perform

It's either ProjectCacheWorker#perform or
ProjectCacheWorker.perform_async!

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2017-01-31 17:37:31 +01:00
parent d4246054b4
commit 89a2438ab4
No known key found for this signature in database
GPG key ID: 46DF07E5CD9E96AB
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)