Skip to content

Commit

Permalink
Allow user to override container registry
Browse files Browse the repository at this point in the history
  • Loading branch information
hkeward committed Jul 4, 2023
1 parent f3aa8b3 commit 002c7c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ These files are hosted publicly in each of the cloud backends; see `backends/${b
| String? | zones | Zones where compute will take place; required if backend is set to 'AWS' or 'GCP'. | <ul><li>[Determining available zones in AWS](backends/aws/README.md#determining-available-zones)</li><li>[Determining available zones in GCP](backends/gcp/README.md#determining-available-zones)</li></ul> |
| String? | aws_spot_queue_arn | Queue ARN for the spot batch queue; required if backend is set to 'AWS' and `preemptible` is set to `true` | [Determining the AWS queue ARN](backends/aws/README.md#determining-the-aws-batch-queue-arn) |
| String? | aws_on_demand_queue_arn | Queue ARN for the on demand batch queue; required if backend is set to 'AWS' and `preemptible` is set to `false` | [Determining the AWS queue ARN](backends/aws/README.md#determining-the-aws-batch-queue-arn) |
| String? | container_registry | Container registry where workflow images are hosted. If left blank, [PacBio's public Quay.io registry](https://quay.io/organization/pacbio) will be used. | |
| Boolean | preemptible | If set to `true`, run tasks preemptibly where possible. On-demand VMs will be used only for tasks that run for >24 hours if the backend is set to GCP. If set to `false`, on-demand VMs will be used for every task. Ignored if backend is set to HPC. | \[true, false\] |

# Workflow outputs
Expand Down
3 changes: 1 addition & 2 deletions backends/hpc/inputs.hpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,5 @@
"humanwgs.glnexus_mem_gb": "Int (optional, default = 30)",
"humanwgs.run_tertiary_analysis": "Boolean (optional, default = true)",
"humanwgs.backend": "HPC",
"humanwgs.zones": "String",
"humanwgs.preemptible": "Boolean"
"humanwgs.preemptible": true
}
4 changes: 3 additions & 1 deletion workflows/main.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ workflow humanwgs {
backend = backend,
zones = zones,
aws_spot_queue_arn = aws_spot_queue_arn,
aws_on_demand_queue_arn = aws_on_demand_queue_arn
aws_on_demand_queue_arn = aws_on_demand_queue_arn,
container_registry = container_registry
}

RuntimeAttributes default_runtime_attributes = if preemptible then backend_configuration.spot_runtime_attributes else backend_configuration.on_demand_runtime_attributes
Expand Down Expand Up @@ -145,6 +146,7 @@ workflow humanwgs {
zones: {help: "Zones where compute will take place; required if backend is set to 'AWS' or 'GCP'"}
aws_spot_queue_arn: {help: "Queue ARN for the spot batch queue; required if backend is set to 'AWS'"}
aws_on_demand_queue_arn: {help: "Queue ARN for the on demand batch queue; required if backend is set to 'AWS'"}
container_registry: {help: "Container registry where workflow images are hosted. If left blank, PacBio's public Quay.io registry will be used."}
preemptible: {help: "Where possible, run tasks preemptibly"}
}
}

0 comments on commit 002c7c0

Please sign in to comment.