Commit df3c473e authored by Lin Jen-Shin's avatar Lin Jen-Shin

We should not exit in rake task

If we call exit it'll stop any tests running after tests running
this specific test.
parent 28a64adf
......@@ -179,7 +179,7 @@ namespace :gitlab do
task reindex: :environment do
unless Gitlab::Database::Reindexing.enabled?
puts "This feature (database_reindexing) is currently disabled.".color(:yellow)
exit
next
end
Gitlab::Database::Reindexing.invoke
......@@ -193,7 +193,7 @@ namespace :gitlab do
task database_name => :environment do
unless Gitlab::Database::Reindexing.enabled?
puts "This feature (database_reindexing) is currently disabled.".color(:yellow)
exit
next
end
Gitlab::Database::Reindexing.invoke(database_name)
......
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