fix: Sentry

This commit is contained in:
Andras Bacsai
2022-05-06 15:40:07 +02:00
parent fa5f439858
commit 6a6426fe6b
4 changed files with 66 additions and 67 deletions

View File

@@ -31,7 +31,7 @@ async function stopBuild(buildId, applicationId) {
}
if (count > 100) {
clearInterval(interval);
return resolve();
return reject(new Error('Build canceled'));
}
const { stdout: buildContainers } = await asyncExecShell(
@@ -70,7 +70,6 @@ export const post: RequestHandler = async (event) => {
}
try {
await stopBuild(buildId, applicationId);
await cleanupDB(buildId);
return {
status: 200,
body: {