M bin/billing_monthly_cronjob => bin/billing_monthly_cronjob +1 -4
@@ 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
M bin/process_pending_btc_transactions => bin/process_pending_btc_transactions +1 -4
@@ 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")