We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4a351c commit 921ab0fCopy full SHA for 921ab0f
packages/aws-cdk/lib/cli/cli.ts
@@ -734,6 +734,14 @@ export function cli(args: string[] = process.argv.slice(2)) {
734
} catch (e: any) {
735
await CliIoHost.get()?.asIoHelper().defaults.trace(`Ending Telemetry failed: ${e.message}`);
736
}
737
+ /*
738
+ * The SDK may leave open handles in some environments. One case we have seen is
739
+ * MetadataService leaving an open socket in GitHub Actions. To ensure that
740
+ * the CLI exits in all environments, we explicitly call process.exit() after
741
+ * ending telemetry.
742
+ *
743
+ * See https://github.com/aws/aws-sdk-js-v3/issues/7538.
744
+ */
745
process.exit();
746
});
747
0 commit comments