File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ export class DevRunController {
123
123
} ,
124
124
} ) ;
125
125
126
- process . on ( "SIGTERM" , this . sigterm ) ;
126
+ process . on ( "SIGTERM" , this . sigterm . bind ( this ) ) ;
127
127
}
128
128
129
129
private async sigterm ( ) {
Original file line number Diff line number Diff line change @@ -559,6 +559,8 @@ const zodIpc = new ZodIpcConnection({
559
559
} ) ;
560
560
}
561
561
} finally {
562
+ standardHeartbeatsManager . stopHeartbeat ( ) ;
563
+
562
564
_execution = undefined ;
563
565
_isRunning = false ;
564
566
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ import { HeartbeatsManager } from "./types.js";
4
4
const API_NAME = "heartbeats" ;
5
5
6
6
class NoopHeartbeatsManager implements HeartbeatsManager {
7
- async startHeartbeat ( id : string ) {
7
+ startHeartbeat ( id : string ) {
8
8
return ;
9
9
}
10
10
11
- async stopHeartbeat ( ) {
11
+ stopHeartbeat ( ) {
12
12
return ;
13
13
}
14
14
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ export class StandardHeartbeatsManager implements HeartbeatsManager {
29
29
}
30
30
31
31
startHeartbeat ( id : string ) {
32
+ this . stopHeartbeat ( ) ;
32
33
this . currentAbortController = new AbortController ( ) ;
33
34
this . lastHeartbeatYieldTime = Date . now ( ) ;
34
35
You can’t perform that action at this time.
0 commit comments