-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f111395
commit f2b2c30
Showing
17 changed files
with
226 additions
and
16 deletions.
There are no files selected for viewing
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
21 changes: 21 additions & 0 deletions
21
centaur/src/main/resources/standardTestCases/quota_fail_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: quota_fail_retry | ||
testFormat: workflowfailure | ||
backends: [Papiv2] | ||
|
||
files { | ||
workflow: quota_fail_retry/quota_fail_retry.wdl | ||
} | ||
|
||
# Adapted from `preemptible_and_memory_retry.test`. | ||
# I set `broad-dsde-cromwell-dev` to have super low CPU quota in `us-west3` (Salt Lake City) for this test | ||
# This functionality is pretty married to PAPI, it doesn't run on `GCPBatch` backend. | ||
|
||
metadata { | ||
workflowName: sleepy_sleep | ||
status: Failed | ||
"failures.0.message": "Workflow failed" | ||
"failures.0.causedBy.0.message": "Task sleepy_sleep.sleep:NA:3 failed. The job was stopped before the command finished. PAPI error code 9. Could not start instance custom-12-11264 due to insufficient quota. Cromwell retries exhausted, task failed. Backend info: Execution failed: allocating: selecting resources: selecting region and zone: no available zones: us-west3: 12 CPUS (10/10 available) quota too low" | ||
"sleepy_sleep.sleep.-1.1.executionStatus": "RetryableFailure" | ||
"sleepy_sleep.sleep.-1.2.executionStatus": "RetryableFailure" | ||
"sleepy_sleep.sleep.-1.3.executionStatus": "Failed" | ||
} |
36 changes: 36 additions & 0 deletions
36
centaur/src/main/resources/standardTestCases/quota_fail_retry/quota_fail_retry.wdl
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version 1.0 | ||
|
||
workflow sleepy_sleep { | ||
|
||
input { | ||
Int sleep_seconds = 180 | ||
} | ||
|
||
call sleep { | ||
input: sleep_seconds = sleep_seconds | ||
} | ||
|
||
} | ||
|
||
task sleep { | ||
|
||
input { | ||
Int sleep_seconds | ||
} | ||
|
||
meta { | ||
volatile: true | ||
} | ||
|
||
# I set `broad-dsde-cromwell-dev` to have super low CPU quota in `us-west3` (Salt Lake City) for this test | ||
runtime { | ||
cpu: 12 | ||
docker: "ubuntu:latest" | ||
zones: "us-west3-a us-west3-b us-west3-c" | ||
} | ||
|
||
command <<< | ||
sleep ~{sleep_seconds}; | ||
ls -la | ||
>>> | ||
} |
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
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
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
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
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
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
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
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
Oops, something went wrong.