fix: Update stucked builds

This commit is contained in:
Andras Bacsai 2022-04-05 10:36:09 +02:00
parent 7ab5a4bfcf
commit c8c23c53ef

View File

@ -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) }