henriqueribeiro / cromwell

Scientific workflow engine designed for simplicity & scalability. Trivially transition between one off use cases to massive scale production environments
http://cromwell.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
10 stars 6 forks source link

Add evaluteOnExit for aws batch retry #40

Closed xquek closed 1 year ago

xquek commented 1 year ago

Hi @henriqueribeiro,

This is a PR for the awsBatchEvaluateOnExit feature.

Changes made

Using the same pattern for awsBatchRetryAttempts, I made the following changes:

Discussion

I have kept awsBatchEvaluateOnExit as a separate run time attribute instead of combining it with awsBatchRetryAttempts as coercion of nested values between womtype and scala type can be tricky.

We are continuously testing it internally but will to to put up this PR to hear what you think - we were able to get it working by setting it as default-runtime-attribute as will as task level attribute.

I also noticed that i wasnt able to coerce the List of Map directly from Config to WomArray(WomMap(WomString, WomString)) so im have to add a additional method fromConfig for AwsBatchEvaluateOnExitValidation.