File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/sim/lib/workflows/executor Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ export class PauseResumeManager {
172172 const RETRY_DELAY_MS = 200
173173 let lastError : Error | null = null
174174
175- for ( let attempt = 0 ; attempt <= MAX_RETRIES ; attempt ++ ) {
175+ for ( let attempt = 0 ; attempt < MAX_RETRIES ; attempt ++ ) {
176176 try {
177177 return await db . transaction ( async ( tx ) => {
178178 const pausedExecution = await tx
@@ -291,7 +291,7 @@ export class PauseResumeManager {
291291 } catch ( err : any ) {
292292 lastError = err
293293 const isNotFound = err . message ?. includes ( 'Paused execution not found' )
294- const isLastAttempt = attempt === MAX_RETRIES
294+ const isLastAttempt = attempt === MAX_RETRIES - 1
295295
296296 if ( ! isNotFound || isLastAttempt ) {
297297 throw err
You can’t perform that action at this time.
0 commit comments