fix: Cleanup old builds
This commit is contained in:
@@ -52,7 +52,13 @@ export default async function (job) {
|
|||||||
settings
|
settings
|
||||||
} = job.data;
|
} = job.data;
|
||||||
const { debug } = settings;
|
const { debug } = settings;
|
||||||
|
|
||||||
await asyncSleep(1000);
|
await asyncSleep(1000);
|
||||||
|
|
||||||
|
await db.prisma.build.updateMany({
|
||||||
|
where: { status: 'queued', id: { not: buildId } },
|
||||||
|
data: { status: 'failed' }
|
||||||
|
});
|
||||||
let imageId = applicationId;
|
let imageId = applicationId;
|
||||||
let domain = getDomain(fqdn);
|
let domain = getDomain(fqdn);
|
||||||
const isHttps = fqdn.startsWith('https://');
|
const isHttps = fqdn.startsWith('https://');
|
||||||
|
Reference in New Issue
Block a user