fix: Update stucked builds
This commit is contained in:
parent
7ab5a4bfcf
commit
c8c23c53ef
@ -61,7 +61,7 @@ export default async function (job) {
|
||||
await asyncSleep(500);
|
||||
await db.prisma.build.updateMany({
|
||||
where: {
|
||||
status: 'queued',
|
||||
status: { in: ['queued', 'running'] },
|
||||
id: { not: buildId },
|
||||
applicationId,
|
||||
createdAt: { lt: new Date(new Date().getTime() - 60 * 60 * 1000) }
|
||||
|
Loading…
Reference in New Issue
Block a user