Carla Pereira-Garcia
04/03/2026, 1:54 PM-resume . Especially today because my cluster was in maintenance for a couple days and now its starting from the beginning. Is this normal? Is there a way to solve it? Why sometimes it doesnt cache all the things that have already been done? Also if the main jobs is cancel but some of the submited jobs are still running and finish correctly, are those be cache in the next main job?Mirae Baichoo
04/03/2026, 2:43 PM--resume when you submitted it originally? (And if you look in the output dir are there partially completed files and/or info in the .nextflow.log?Carla Pereira-Garcia
04/03/2026, 2:57 PM-resume originally and yes, the output is there, the work directory is there and even when I do nextflow log the runs show up but its not chaching anything...Mirae Baichoo
04/03/2026, 2:59 PMCarla Pereira-Garcia
04/03/2026, 3:09 PMCarla Pereira-Garcia
04/03/2026, 3:10 PMMirae Baichoo
04/03/2026, 3:11 PMCarla Pereira-Garcia
04/03/2026, 3:15 PM-resume run_name be use to force the caching of the last run that worked? or some other id or file to force the caching?Mirae Baichoo
04/03/2026, 3:19 PMnextflow log it should show you which runs it is aware of. I think you should be able to put in the session id or the run name. ie if you have a run name of "big_plank" something like this: nextflow run nf-core/mag -resume big_plank ....Carla Pereira-Garcia
04/03/2026, 3:22 PMnextflow log
TIMESTAMP DURATION RUN NAME STATUS REVISION ID SESSION ID COMMAND
2026-03-30 17:29:07 20h 20m 13s friendly_tuckerman ERR 0c370baf73 5c6ea3f0-f979-408f-9a37-f6730d2f5b91 nextflow run nf-core/mag -profile ifb_core -r 5.4.1 -c mod.config --input /shared/projects/mags_margo/FL/data/samplesheetFL.csv --outdir /shared/projects/mags_margo/FL/output/nf_core_mag --multiqc_title FL_samples --fastp_trim_polyg --gtdb_db /shared/bank/gtdbtk/release226/ --skip_spades --run_checkm2 --checkm2_db /shared/bank/checkM2/version_3/CheckM2_database/uniref100.KO.1.dmnd --refine_bins_dastool --postbinning_input both -resume --igenomes_base false --checkm_db /shared/ifbstor1/bank/checkm/2015-01-16/
2026-03-31 19:41:30 56m ridiculous_gates ERR 0c370baf73 5c6ea3f0-f979-408f-9a37-f6730d2f5b91 nextflow run nf-core/mag -profile ifb_core -r 5.4.1 -resume friendly_tuckerman -c /shared/projects/mags_margo/FL/nf-core-mag/mod.config --input /shared/projects/mags_margo/FL/data/samplesheetFL.csv --outdir /shared/projects/mags_margo/FL/output/nf_core_mag --multiqc_title FL_samples --fastp_trim_polyg --gtdb_db /shared/bank/gtdbtk/release226/ --skip_spades --run_checkm2 --checkm2_db /shared/bank/checkM2/version_3/CheckM2_database/uniref100.KO.1.dmnd --refine_bins_dastool --postbinning_input both --igenomes_base false --checkm_db /shared/ifbstor1/bank/checkm/2015-01-16/
2026-04-03 16:47:39 21.5s big_hypatia OK 0c370baf73 5c6ea3f0-f979-408f-9a37-f6730d2f5b91 nextflow run nf-core/mag -profile ifb_core -r 5.4.1 -w /shared/projects/mags_margo/FL/nf-core-mag/work -resume ridiculous_gates -c /shared/projects/mags_margo/FL/nf-core-mag/mod.config --input /shared/projects/mags_margo/FL/data/samplesheetFL.csv --outdir /shared/projects/mags_margo/FL/output/nf_core_mag --multiqc_title FL_samples --fastp_trim_polyg --gtdb_db /shared/bank/gtdbtk/release226/ --skip_spades --run_checkm2 --checkm2_db /shared/bank/checkM2/version_3/CheckM2_database/uniref100.KO.1.dmnd --refine_bins_dastool --postbinning_input both --igenomes_base false --checkm_db /shared/ifbstor1/bank/checkm/2015-01-16/ -preview
2026-04-03 16:50:29 - special_sinoussi - 0c370baf73 5c6ea3f0-f979-408f-9a37-f6730d2f5b91 nextflow run nf-core/mag -profile ifb_core -r 5.4.1 -w /shared/projects/mags_margo/FL/nf-core-mag/work -resume ridiculous_gates -c /shared/projects/mags_margo/FL/nf-core-mag/mod.config --input /shared/projects/mags_margo/FL/data/samplesheetFL.csv --outdir /shared/projects/mags_margo/FL/output/nf_core_mag --multiqc_title FL_samples --fastp_trim_polyg --gtdb_db /shared/bank/gtdbtk/release226/ --skip_spades --run_checkm2 --checkm2_db /shared/bank/checkM2/version_3/CheckM2_database/uniref100.KO.1.dmnd --refine_bins_dastool --postbinning_input both --igenomes_base false --checkm_db /shared/ifbstor1/bank/checkm/2015-01-16/
and my code is
#!/bin/bash
#
#SBATCH -o logs/MAG.log_%J.out
#SBATCH -e logs/MAG.log_%J.err
#SBATCH --mail-type END
#SBATCH --mail-user <mailto:carla.pereira-garcia@univ-littoral.fr|carla.pereira-garcia@univ-littoral.fr>
#SBATCH -p long
#
cd /shared/projects/mags_margo/FL/nf-core-mag
module purge
module load nextflow
module load singularity
module load openjdk
nextflow run nf-core/mag \
-profile ifb_core \
-r 5.4.1 \
-w /shared/projects/mags_margo/FL/nf-core-mag/work \
-resume ridiculous_gates \
-c /shared/projects/mags_margo/FL/nf-core-mag/mod.config \
--input /shared/projects/mags_margo/FL/data/samplesheetFL.csv \
--outdir /shared/projects/mags_margo/FL/output/nf_core_mag \
--multiqc_title FL_samples \
--fastp_trim_polyg \
--gtdb_db /shared/bank/gtdbtk/release226/ \
--skip_spades \
--run_checkm2 \
--checkm2_db /shared/bank/checkM2/version_3/CheckM2_database/uniref100.KO.1.dmnd \
--refine_bins_dastool \
--postbinning_input both \
--igenomes_base false \
--checkm_db /shared/ifbstor1/bank/checkm/2015-01-16/Mirae Baichoo
04/03/2026, 3:26 PMCarla Pereira-Garcia
04/03/2026, 3:38 PMThomas Danhorn
04/04/2026, 8:36 PM-dump-hashes option is mostly helpful if you used it in the original run and any resumed ones. But you can test with a small sample if you can reproduce the problem and how it is affected e.g. by using different parameters.
It is unfortunately not uncommon that certain processes will be rerun (instead of using the cache), mostly because of imperfect pipeline implementation that subtly changes what exactly is passed to a process. But if absolutely nothing is used from cache this may be a more fundamental problem. You are running the same pipeline command (with -resume) in the same directory when you are resuming, right?Carla Pereira-Garcia
04/05/2026, 2:01 PMThomas Danhorn
04/06/2026, 2:48 PM