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:
parent
d4246054b4
commit
89a2438ab4
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: Fix wrong call to ProjectCacheWorker.perform
|
||||||
|
merge_request: 8910
|
||||||
|
author:
|
|
@ -63,7 +63,7 @@ namespace :gitlab do
|
||||||
|
|
||||||
if project.persisted?
|
if project.persisted?
|
||||||
puts " * Created #{project.name} (#{repo_path})".color(:green)
|
puts " * Created #{project.name} (#{repo_path})".color(:green)
|
||||||
ProjectCacheWorker.perform(project.id)
|
ProjectCacheWorker.perform_async(project.id)
|
||||||
else
|
else
|
||||||
puts " * Failed trying to create #{project.name} (#{repo_path})".color(:red)
|
puts " * Failed trying to create #{project.name} (#{repo_path})".color(:red)
|
||||||
puts " Errors: #{project.errors.messages}".color(:red)
|
puts " Errors: #{project.errors.messages}".color(:red)
|
||||||
|
|
Loading…
Reference in New Issue