(cli): allow asset publishing (or at least the asset generation) to run in sequence #22179
Closed
1 of 2 tasks
Labels
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
package/tools
Related to AWS CDK Tools or CLI
Describe the feature
Currently, the CDK CLI always publishes assets in parallel. I would like to be able to change this behaviour via a command line parameter so that they run in sequence. This behaviour is actually configurable via the
publishInParallel
prop of theAssetPublishing
classaws-cdk/packages/cdk-assets/lib/publishing.ts
Line 33 in 74318c7
but when it is used, the value is hard-coded to
true
aws-cdk/packages/aws-cdk/lib/util/asset-publishing.ts
Line 47 in 5cc0d35
Use Case
In our CDK packages, assets are configured to be generated during publishing step using the
source.executable
property. Example of a manifest file:If we have more than one assets, their publishing steps are run in parallel, the generation steps are also executed in the same fashion. Our internal tool has a unavoidable limitation where it can fail when running in parallel in some edge cases. We need the ability to tell CDK to run the asset publishing steps (or at least the asset generation steps) in sequence.
Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
N/A
Environment details (OS name and version, etc.)
N/A
The text was updated successfully, but these errors were encountered: