run multiple slurm jobs using the same singularity container that is run via nextflow #2733
Unanswered
luciazifcakova
asked this question in
Q&A
Replies: 1 comment
-
Hi @luciazifcakova , it may be that your temp dir does not reside in shared storage. In that case only the nextflow job would be able to access it, the work jobs would not. Make sure you place your singularity image in a shared directory such as your home directory or a shared scratch directory. Also, you don't need to specify the container image with both |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
have some solved this issue already?
I want to run multiple slurm jobs using the same singularity container that is run via nextflow.
I have create separate temp dir for each input file from an slurm array to be run in and the output dir is also in created within temp dir.
The issue is that when I am within temp dir, nextflow cannot find the singularity container to run because it is outside of temp dir.
I have tried to provide sym links to nextflow command (did not work) but I don't know how to change the paths to singularity container within main.nf and nextflow.config that all point to the container outside of temp dir.
Here is my slurm job:
Here is how the path to singularity container is defined within main.nf:
and full path for the container is added in nextflow.config.
Beta Was this translation helpful? Give feedback.
All reactions