diff --git a/bin/billing_monthly_cronjob b/bin/billing_monthly_cronjob index fd5b3f3c2a024059bd5bfaeb28230b0c13b1c99f..598e9773cdef207ab0efa91d5bf081389629592c 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 e16b3fefdd7ce588c5616a2bcca430ba471b8076..c154af521d0afb2393bd637f4508c2582a8de453 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")