File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2634,8 +2634,8 @@ if (
26342634 }
26352635 } ;
26362636
2637- process . on ( "SIGTERM" , ( ) => shutdown ( "SIGTERM" ) ) ;
2638- process . on ( "SIGINT" , ( ) => shutdown ( "SIGINT" ) ) ;
2637+ process . on ( "SIGTERM" , ( ) => void shutdown ( "SIGTERM" ) ) ;
2638+ process . on ( "SIGINT" , ( ) => void shutdown ( "SIGINT" ) ) ;
26392639
26402640 // await migrationService.fixNullPassInOpinionTable({ db });
26412641 // await migrationService.fixEmptyOpinionIdInPolisClusterOpinionTable({ db });
Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ import {
1616 initializeGoogleCloudCredentials ,
1717 type GoogleCloudCredentials ,
1818} from "./shared-backend/googleCloudAuth.js" ;
19- import { sql } from "drizzle-orm" ;
20- import { PostgresJsDatabase } from "drizzle-orm/postgres-js" ;
2119import pLimit from "p-limit" ;
2220
2321/**
@@ -272,16 +270,16 @@ async function main() {
272270 log . info ( "[Math Updater] Shutting down gracefully..." ) ;
273271
274272 // Delete any pending jobs before stopping
275- await deleteOldJobs ( db ) ;
273+ // await deleteOldJobs(db);
276274
277275 await boss . stop ( ) ;
278276 log . info ( "[Math Updater] pg-boss stopped" ) ;
279277 process . exit ( 0 ) ;
280278 } ;
281279
282- process . on ( "SIGTERM" , shutdown ) ;
283- process . on ( "SIGINT" , shutdown ) ;
284- process . on ( "SIGHUP" , shutdown ) ;
280+ process . on ( "SIGTERM" , ( ) => void shutdown ( ) ) ;
281+ process . on ( "SIGINT" , ( ) => void shutdown ( ) ) ;
282+ process . on ( "SIGHUP" , ( ) => void shutdown ( ) ) ;
285283}
286284
287285main ( ) . catch ( ( error ) => {
You can’t perform that action at this time.
0 commit comments