fix: Cleanup old builds
This commit is contained in:
parent
fdf998c181
commit
7b8555d524
1 changed files with 6 additions and 0 deletions
|
|
@ -52,7 +52,13 @@ export default async function (job) {
|
|||
settings
|
||||
} = job.data;
|
||||
const { debug } = settings;
|
||||
|
||||
await asyncSleep(1000);
|
||||
|
||||
await db.prisma.build.updateMany({
|
||||
where: { status: 'queued', id: { not: buildId } },
|
||||
data: { status: 'failed' }
|
||||
});
|
||||
let imageId = applicationId;
|
||||
let domain = getDomain(fqdn);
|
||||
const isHttps = fqdn.startsWith('https://');
|
||||
|
|
|
|||
Loading…
Reference in a new issue