Submit entire workflow to SLURM instead of individual tasks

When I run my workflow in command line mode, it submits SLURM job for individual task (example below), instead of the entire workflow at once. Is it true in server mode as well? Is there a way around it?

Example task:

...
task task_A {
    File file
    command {
        echo "Hello!"
    }
    output {
        String out = read_string(stdout())
    }
    runtime {
        backend: "SLURM"
    }
}

task task_B {
    command { ... }
    output { ... }
    runtime { 
        backend: "SLURM"
    }
}
...

Many thanks,

Sign In or Register to comment.