How to choose backend in WDL file

staaanstaaan Member

Hi,
How can I use différents backends in WDL file. I mean, I have 2 backend that one is 'default' in my application.conf file :

backend {
    default = "Singularity"
    providers {
        Singularity { 
            actor-factory = "cromwell.backend.impl.sfs.config.ConfigBackendLifecycleActorFactory"
            config {
                run-in-background = true
                runtime-attributes = """
                String? simg
                """
                submit = "singularity exec -B /data ${simg} /bin/bash < ${script}"
            }
        }

        Local { 
            actor-factory = "cromwell.backend.impl.sfs.config.ConfigBackendLifecycleActorFactory"
            config {
                run-in-background = true
                submit = "bash ${script}"
            }
        }

    }
}

Singularity is default one. I want to select Local for one specific task :

        [...]
        task getImage {
        String imageName
        command {
          findmyimage imageName # example

        }
        output {
         String sImgName = stdout()
        }
        }
        [...]

In this case, i want to use "Local" Backend but it will use Singularity Backend. How can I choose "Local" for this specific task ?

Thanks
regards

Best Answer

Answers

Sign In or Register to comment.