Created
February 24, 2021 18:52
-
-
Save tthyer/e3ac9c26c2dee82c7fdc24dbbf7ad837 to your computer and use it in GitHub Desktop.
wdl retry test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"write_to_cache": false, | |
"read_from_cache": false, | |
"default_runtime_attributes": { | |
"maxRetries": 2 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task retry_test { | |
command { | |
if [ "$AWS_BATCH_JOB_ATTEMPT" -lt 2 ]; then | |
echo "inside if block" | |
exit 1 | |
else | |
echo "AWS_BATCH_JOB_ATTEMPT = $AWS_BATCH_JOB_ATTEMPT" | |
exit 0 | |
fi | |
} | |
output { | |
String message = read_string(stdout()) | |
} | |
runtime { | |
docker: "ubuntu:latest" | |
} | |
} | |
workflow retry_test_wf { | |
call retry_test | |
output { | |
retry_test.message | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment