Commit d31b218a authored by Sean McGivern's avatar Sean McGivern

Merge branch 'dont-exit-in-rake' into 'master'

We should not exit in rake task

See merge request gitlab-org/gitlab!77955
parents 98a3a026 df3c473e
...@@ -179,7 +179,7 @@ namespace :gitlab do ...@@ -179,7 +179,7 @@ namespace :gitlab do
task reindex: :environment do task reindex: :environment do
unless Gitlab::Database::Reindexing.enabled? unless Gitlab::Database::Reindexing.enabled?
puts "This feature (database_reindexing) is currently disabled.".color(:yellow) puts "This feature (database_reindexing) is currently disabled.".color(:yellow)
exit next
end end
Gitlab::Database::Reindexing.invoke Gitlab::Database::Reindexing.invoke
...@@ -193,7 +193,7 @@ namespace :gitlab do ...@@ -193,7 +193,7 @@ namespace :gitlab do
task database_name => :environment do task database_name => :environment do
unless Gitlab::Database::Reindexing.enabled? unless Gitlab::Database::Reindexing.enabled?
puts "This feature (database_reindexing) is currently disabled.".color(:yellow) puts "This feature (database_reindexing) is currently disabled.".color(:yellow)
exit next
end end
Gitlab::Database::Reindexing.invoke(database_name) 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