Skip to content

Commit

Permalink
Don't expire enqueued runs if they have lockedAt set (#1571)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericallam authored Dec 16, 2024
1 parent 88a0754 commit 3418aa6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/webapp/app/v3/services/expireEnqueuedRun.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ export class ExpireEnqueuedRunService extends BaseService {
return;
}

if (run.lockedAt) {
logger.debug("Run cannot be expired because it's locked", {
run,
});

return;
}

logger.debug("Expiring enqueued run", {
run,
});
Expand Down

0 comments on commit 3418aa6

Please sign in to comment.