mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 07:36:41 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
467f3edfb9
commit
b650a0f11d
1 changed files with 2 additions and 2 deletions
|
|
@ -335,7 +335,7 @@ async function scheduleRetry(
|
|||
agent: { id: string },
|
||||
jobId: string,
|
||||
message: string,
|
||||
) {
|
||||
): Promise<boolean> {
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue