Skip to content

Commit 3418aa6

Browse files
authored
Don't expire enqueued runs if they have lockedAt set (#1571)
1 parent 88a0754 commit 3418aa6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

apps/webapp/app/v3/services/expireEnqueuedRun.server.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ export class ExpireEnqueuedRunService extends BaseService {
4949
return;
5050
}
5151

52+
if (run.lockedAt) {
53+
logger.debug("Run cannot be expired because it's locked", {
54+
run,
55+
});
56+
57+
return;
58+
}
59+
5260
logger.debug("Expiring enqueued run", {
5361
run,
5462
});

0 commit comments

Comments
 (0)