File tree 3 files changed +138
-62
lines changed
3 files changed +138
-62
lines changed Original file line number Diff line number Diff line change @@ -372,11 +372,11 @@ declare global {
372
372
373
373
poolGracefulShutdown (
374
374
event : GraphileWorker . PoolGracefulShutdownEvent ,
375
- ) : Promise < void > ;
375
+ ) : ReturnType < WorkerPool [ "gracefulShutdown" ] > ;
376
376
377
377
poolForcefulShutdown (
378
378
event : GraphileWorker . PoolForcefulShutdownEvent ,
379
- ) : Promise < void > ;
379
+ ) : ReturnType < WorkerPool [ "forcefulShutdown" ] > ;
380
380
}
381
381
382
382
interface WorkerHooks {
Original file line number Diff line number Diff line change @@ -517,7 +517,9 @@ export interface WorkerPool {
517
517
/** @deprecated Use gracefulShutdown instead */
518
518
release : ( ) => PromiseOrDirect < void > ;
519
519
gracefulShutdown : ( message ?: string ) => PromiseOrDirect < void > ;
520
- forcefulShutdown : ( message : string ) => PromiseOrDirect < void > ;
520
+ forcefulShutdown : ( message : string ) => PromiseOrDirect < {
521
+ forceFailedJobs : readonly Job [ ] ;
522
+ } > ;
521
523
promise : Promise < void > ;
522
524
/** Fires 'abort' when all running jobs should stop because worker is shutting down. @experimental */
523
525
abortSignal : AbortSignal ;
You can’t perform that action at this time.
0 commit comments