openweave / openweave-wdlc

This package makes available the Weave Data Language (WDL) compiler (WDLC). WDL is Weave's publish and subscribe schema language. The WDLC compiler can be used to compile (i.e., validate and code generate) schema written against the WDL specification.
https://openweave.io/
Apache License 2.0
2 stars 8 forks source link

wdlc cannot be invoked parallely due to colliding output descriptor name #19

Open mrjerryjohns opened 5 years ago

mrjerryjohns commented 5 years ago

When wdlc is invoked in parallel to compile different pieces of schema simultaneously, it fails due to all invocations writing to/deleting the same descriptor binary that gets generated as an intermediate artifact.

Unless specified by the user through the --output-intermediate FILE option, it should by default generate a randomized file name to reduce/omit the chance of collisions across parallel runs.