From 0101962fef354baae5ae8bb7bf23498e8cebd49d Mon Sep 17 00:00:00 2001 From: bshifaw Date: Sat, 23 Sep 2023 19:48:59 -0400 Subject: [PATCH] removed task from test workflow that imports its task --- .../helloWorld_with_imports.wdl | 63 +------------------ 1 file changed, 3 insertions(+), 60 deletions(-) diff --git a/tests/workflows/wdl_with_imports/helloWorld_with_imports.wdl b/tests/workflows/wdl_with_imports/helloWorld_with_imports.wdl index 29bd5c54..faf08a5e 100644 --- a/tests/workflows/wdl_with_imports/helloWorld_with_imports.wdl +++ b/tests/workflows/wdl_with_imports/helloWorld_with_imports.wdl @@ -1,5 +1,5 @@ -import "../helloWorld.wdl" -import "hello_world_task.wdl" +import "../helloWorld.wdl" as HelloWorldWorkflow +import "hello_world_task.wdl" as helloWorldTask workflow HelloWorld { meta { @@ -24,7 +24,7 @@ workflow HelloWorld { Int? cpu Int? boot_disk_size_gb - call HelloWorldTask { + call helloWorldTask.HelloWorldTask { input: docker = docker, mem = mem, @@ -39,61 +39,4 @@ workflow HelloWorld { } } -task HelloWorldTask { - - # ------------------------------------------------ - # Input args: - - # Required: - - # Runtime Options: - String docker - Int? mem - Int? preemptible_attempts - Int? disk_space_gb - Int? cpu - Int? boot_disk_size_gb - - # ------------------------------------------------ - # Process input args: - - # ------------------------------------------------ - # Get machine settings: - Boolean use_ssd = false - - # You may have to change the following two parameter values depending on the task requirements - Int default_ram_mb = 3 * 1024 - # WARNING: In the workflow, you should calculate the disk space as an input to this task (disk_space_gb). Please see [TODO: Link from Jose] for examples. - Int default_disk_space_gb = 100 - - Int default_boot_disk_size_gb = 15 - - # Mem is in units of GB but our command and memory runtime values are in MB - Int machine_mem = if defined(mem) then mem * 1024 else default_ram_mb - Int command_mem = machine_mem - 1024 - - # ------------------------------------------------ - # Run our command: - command <<< - set -e - echo 'Hello World!' - >>> - - # ------------------------------------------------ - # Runtime settings: -# runtime { -# docker: docker -# memory: machine_mem + " MB" -# disks: "local-disk " + select_first([disk_space_gb, default_disk_space_gb]) + if use_ssd then " SSD" else " HDD" -# bootDiskSizeGb: select_first([boot_disk_size_gb, default_boot_disk_size_gb]) -# preemptible: 0 -# cpu: select_first([cpu, 1]) -# } - - # ------------------------------------------------ - # Outputs: - output { - File output_file = stdout() - } - }