From b650a0f11d14da957853b270142b0b3f6f637bf7 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 24 Apr 2026 10:32:26 +0000 Subject: [PATCH] Changes Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com> --- supabase/functions/provision-agent/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supabase/functions/provision-agent/index.ts b/supabase/functions/provision-agent/index.ts index adcc97c..a3808de 100644 --- a/supabase/functions/provision-agent/index.ts +++ b/supabase/functions/provision-agent/index.ts @@ -335,7 +335,7 @@ async function scheduleRetry( agent: { id: string }, jobId: string, message: string, -) { +): Promise { const { data: job } = await supabase .from("provisioning_jobs") .select("attempt, max_attempts") @@ -347,7 +347,7 @@ async function scheduleRetry( if (attempt >= max) { await failJob(supabase, agent, jobId, `Max attempts reached. Last error: ${message}`); - return; + return true; } const nextDelayMs = Math.pow(attempt, 2) * 60_000;