From 7d817d28ca3280ce800ad44bc1c3326268305c2d Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 31 Jan 2022 10:16:22 -0500 Subject: [PATCH] Only notify over 900 We've started getting lax about vetting the warnings because there are too many. Raise the threshold for a warning. --- sgx_jmp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgx_jmp.rb b/sgx_jmp.rb index 8787788727e448dc31e7659b4865052a611fb3e3..44b04ef24c64b2357032838f192249de49324493 100644 --- a/sgx_jmp.rb +++ b/sgx_jmp.rb @@ -300,7 +300,7 @@ message do |m| ]).then { customer } }.then { |customer| customer.message_usage((today..(today - 30))).then do |usage| - next unless usage > 500 + next unless usage > 900 ExpiringLock.new("jmp_usage_notify-#{customer.customer_id}").with do BLATHER.join(CONFIG[:notify_admin], "sgx-jmp")