Skip to content

Commit 489325b

Browse files
committed
fix(FIR-43473): stop engine without starting it again
1 parent 71bd51c commit 489325b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/service/engine/model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ export class EngineModel {
3636
async stop() {
3737
const query = `STOP ENGINE "${this.name}"`;
3838
await this.connection.execute(query);
39-
await this.refreshStatus();
4039
const res: Engine = {
4140
name: this.name,
4241
endpoint: this.endpoint,
43-
current_status_summary: this.current_status_summary
42+
// Successful request means the engine is stopped
43+
current_status_summary: EngineStatusSummary.STOPPED
4444
};
4545
return { engine: res };
4646
}

0 commit comments

Comments
 (0)