pg_net's default 5 s timeout is shorter than the check, so every call since at least this morning was stored as a timeout and the function's result was lost. The function kept running; only the record was missing.