From 2e2115ccc9794c7c2502303a32e61c5d111fd0aa Mon Sep 17 00:00:00 2001 From: Rohit Rajan Date: Wed, 10 Sep 2025 00:31:38 +0530 Subject: [PATCH] feat: rm failed on sigint --- server/src/server.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/server/src/server.ts b/server/src/server.ts index 35ce7705..30e4c8ee 100644 --- a/server/src/server.ts +++ b/server/src/server.ts @@ -215,20 +215,6 @@ if (require.main === module) { if (require.main === module) { process.on('SIGINT', async () => { console.log('Main app shutting down...'); - try { - await Run.update( - { - status: 'failed', - finishedAt: new Date().toLocaleString(), - log: 'Process interrupted during execution - worker shutdown' - }, - { - where: { status: 'running' } - } - ); - } catch (error: any) { - console.error('Error updating runs:', error); - } try { console.log('Closing PostgreSQL connection pool...');