Skip to content

Commit 06a7899

Browse files
committed
add enabled poller check before getting latest snapshot
1 parent 239e2b2 commit 06a7899

File tree

1 file changed

+6
-1
lines changed
  • packages/cli-v3/src/entryPoints/managed

1 file changed

+6
-1
lines changed

packages/cli-v3/src/entryPoints/managed/poller.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ export class RunExecutionSnapshotPoller {
3434

3535
this.poller = new IntervalService({
3636
onInterval: async () => {
37+
if (!this.enabled) {
38+
this.sendDebugLog("poller disabled, skipping snapshot change handler (pre)");
39+
return;
40+
}
41+
3742
this.sendDebugLog("polling for latest snapshot");
3843

3944
const response = await this.httpClient.getRunExecutionData(this.runFriendlyId);
@@ -44,7 +49,7 @@ export class RunExecutionSnapshotPoller {
4449
}
4550

4651
if (!this.enabled) {
47-
this.sendDebugLog("poller disabled, skipping snapshot change handler");
52+
this.sendDebugLog("poller disabled, skipping snapshot change handler (post)");
4853
return;
4954
}
5055

0 commit comments

Comments
 (0)