This commit is contained in:
Andras Bacsai 2022-11-30 15:50:45 +01:00
parent 850d57d0d2
commit 9d3ed85ffd
2 changed files with 3 additions and 3 deletions

View File

@ -667,7 +667,7 @@ export async function buildImage({
const { status } = await prisma.build.findUnique({ where: { id: buildId } })
if (status === 'canceled') {
throw new Error('Deployment | Canceled!!!')
throw new Error('Deployment | Canceled.')
}
if (isCache) {
await saveBuildLog({ line: `Cache | Successful! 🎉`, buildId, applicationId });

View File

@ -1535,7 +1535,7 @@ export async function stopBuild(buildId, applicationId) {
scheduler.workers.get('deployApplication').postMessage('cancel');
}
await cleanupDB(buildId, applicationId);
return reject(new Error('Deployment | Canceled!!!'));
return reject(new Error('Deployment | Canceled.'));
}
const { stdout: buildContainers } = await executeDockerCmd({
dockerId,
@ -1568,7 +1568,7 @@ async function cleanupDB(buildId: string, applicationId: string) {
if (data?.status === 'queued' || data?.status === 'running') {
await prisma.build.update({ where: { id: buildId }, data: { status: 'canceled' } });
}
await saveBuildLog({ line: 'Deployment | Canceled!!!', buildId, applicationId });
await saveBuildLog({ line: 'Deployment | Canceled.', buildId, applicationId });
}
export function convertTolOldVolumeNames(type) {