Skip to content

Commit 2653a5c

Browse files
committed
Don't show Start Localstack when a user cancels docker pull
1 parent f5a2667 commit 2653a5c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/plugins/setup.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,18 @@ export default createPlugin(
244244
await minDelay(pullImageProcess);
245245
}
246246

247+
if (cancellationToken.isCancellationRequested) {
248+
telemetry.track({
249+
name: "setup_ended",
250+
payload: {
251+
namespace: "onboarding",
252+
steps: [1, 2, 3],
253+
status: "CANCELLED",
254+
},
255+
});
256+
return;
257+
}
258+
247259
/////////////////////////////////////////////////////////////////////
248260
if (localStackStatusTracker.status() === "running") {
249261
window

0 commit comments

Comments
 (0)