Skip to content

Commit

Permalink
Revert "Try on staging"
Browse files Browse the repository at this point in the history
This reverts commit 22da571.
  • Loading branch information
AntoineAugusti committed Dec 23, 2024
1 parent 22da571 commit fca32e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/transport/lib/transport_web/plugs/worker_healthcheck.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fca32e3

Please sign in to comment.