Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Send storage health mail later

Andreas Pfohlbd7124241ea4
diff --git a/modules/storages/app/services/storages/health/health_service.rb b/modules/storages/app/services/storages/health/health_service.rb
index a96e9503677..5c801bf9fe9 100644
--- a/modules/storages/app/services/storages/health/health_service.rb
+++ b/modules/storages/app/services/storages/health/health_service.rb
@@ -40,7 +40,7 @@ module Storages
@storage.mark_as_healthy
admin_users.each do |admin|
- ::Storages::StoragesMailer.notify_healthy(admin, @storage, reason).deliver_now if was_unhealthy
+ ::Storages::StoragesMailer.notify_healthy(admin, @storage, reason).deliver_later if was_unhealthy
end
end
@@ -50,7 +50,7 @@ module Storages
if @storage.health_reason != last_reason
admin_users.each do |admin|
- ::Storages::StoragesMailer.notify_unhealthy(admin, @storage).deliver_now
+ ::Storages::StoragesMailer.notify_unhealthy(admin, @storage).deliver_later
end
end