From fca32e3e1214b646ebbfe14245fbb94a119a0a9f Mon Sep 17 00:00:00 2001 From: Antoine Augusti Date: Mon, 23 Dec 2024 19:15:31 +0100 Subject: [PATCH] Revert "Try on staging" This reverts commit 22da57181c04472c1e945ffdd5f8990b652e4aee. --- apps/transport/lib/transport_web/plugs/worker_healthcheck.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/transport/lib/transport_web/plugs/worker_healthcheck.ex b/apps/transport/lib/transport_web/plugs/worker_healthcheck.ex index 0e20111b66..a29a3ed422 100644 --- a/apps/transport/lib/transport_web/plugs/worker_healthcheck.ex +++ b/apps/transport/lib/transport_web/plugs/worker_healthcheck.ex @@ -15,7 +15,7 @@ defmodule TransportWeb.Plugs.WorkerHealthcheck do """ import Plug.Conn - @app_start_waiting_delay {5, :minute} + @app_start_waiting_delay {20, :minute} @oban_max_delay_since_last_attempt {60, :minute} def init(options), do: options @@ -69,7 +69,6 @@ defmodule TransportWeb.Plugs.WorkerHealthcheck do def oban_attempted_jobs_recently? do {delay, unit} = @oban_max_delay_since_last_attempt DateTime.after?(oban_last_attempted_at(), DateTime.add(DateTime.utc_now(), -delay, unit)) - false end def oban_last_attempted_at do