Skip to content

Commit

Permalink
removed task from test workflow that imports its task
Browse files Browse the repository at this point in the history
  • Loading branch information
bshifaw committed Sep 23, 2023
1 parent f97e178 commit 0101962
Showing 1 changed file with 3 additions and 60 deletions.
63 changes: 3 additions & 60 deletions tests/workflows/wdl_with_imports/helloWorld_with_imports.wdl
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -24,7 +24,7 @@ workflow HelloWorld {
Int? cpu
Int? boot_disk_size_gb

call HelloWorldTask {
call helloWorldTask.HelloWorldTask {
input:
docker = docker,
mem = mem,
Expand All @@ -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()
}
}

0 comments on commit 0101962

Please sign in to comment.