Skip to content

A platform for community discussion. Free, open, simple.

Revert "DEV: increase lock timeout for multisite migration (#14831)" (#14883)

Osama Sayegh69ec6899f981
diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake
index fa5e26db162..8d0c37013e8 100644
--- a/lib/tasks/db.rake
+++ b/lib/tasks/db.rake
@@ -548,14 +548,12 @@ end
desc 'Check that the DB can be accessed'
task 'db:status:json' do
- DistributedMutex.synchronize('db_migration', redis: Discourse.redis.without_namespace, validity: 1200) do
- begin
- Rake::Task['environment'].invoke
- DB.query('SELECT 1')
- rescue
- puts({ status: 'error' }.to_json)
- else
- puts({ status: 'ok' }.to_json)
- end
+ begin
+ Rake::Task['environment'].invoke
+ DB.query('SELECT 1')
+ rescue
+ puts({ status: 'error' }.to_json)
+ else
+ puts({ status: 'ok' }.to_json)
end
end