From 1069b1db7ea6c47feda21510f033766fcc7d9cdc Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 11 Aug 2021 15:17:14 -0500 Subject: [PATCH] Remove healthchecks integration We use runitor in prod now --- bin/billing_monthly_cronjob | 5 +---- bin/process_pending_btc_transactions | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/bin/billing_monthly_cronjob b/bin/billing_monthly_cronjob index fd5b3f3..598e977 100755 --- a/bin/billing_monthly_cronjob +++ b/bin/billing_monthly_cronjob @@ -2,7 +2,6 @@ # frozen_string_literal: true # Usage: ./billing_monthly_cronjob '{ -# healthchecks_url = "https://hc-ping.com/...", # notify_using = { # jid = "", # password = "", @@ -43,8 +42,6 @@ CONFIG = Dhall.load(<<-DHALL).sync } DHALL -Net::HTTP.post_form(URI("#{CONFIG[:healthchecks_url]}/start"), {}) - REDIS = Redis.new db = PG.connect(dbname: "jmp") db.type_map_for_results = PG::BasicTypeMapForResults.new(db) @@ -212,4 +209,4 @@ db.transaction do end end -Net::HTTP.post_form(URI(CONFIG[:healthchecks_url].to_s), **stats.to_h) +p stats diff --git a/bin/process_pending_btc_transactions b/bin/process_pending_btc_transactions index e16b3fe..c154af5 100755 --- a/bin/process_pending_btc_transactions +++ b/bin/process_pending_btc_transactions @@ -2,7 +2,6 @@ # frozen_string_literal: true # Usage: bin/process_pending-btc_transactions '{ -# healthchecks_url = "https://hc-ping.com/...", # oxr_app_id = "", # required_confirmations = 3, # notify_using = { @@ -32,8 +31,6 @@ CONFIG = .new(safe: Dhall::Coder::JSON_LIKE + [Symbol, Proc]) .load(ARGV[0], transform_keys: :to_sym) -Net::HTTP.post(URI("#{CONFIG[:healthchecks_url]}/start"), "") - REDIS = Redis.new ELECTRUM = Electrum.new(**CONFIG[:electrum]) @@ -265,4 +262,4 @@ done = REDIS.hgetall("pending_btc_transactions").map do |(txid, customer_id)| end end -Net::HTTP.post(URI(CONFIG[:healthchecks_url].to_s), done.compact.join("\n")) +puts done.compact.join("\n") -- 2.45.2