nextflow-io / nextflow-io/nextflow

Cleanup after failed step

Open
#6,077 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stale triage/investigate
Dominant language
Groovy
Stars
3.5k
Forks
811
Avg merge
2d 11h
Merged PRs (30d)
61

Description

We want to cleanup some files used in out pipeline, since these tend to get quite big we would like to this both after a successfull and an errored step.

We tried using "afterScript" for this but this only seems to be triggered if a step was completed without error.

Question 1: is this the correct behaviour of a afterScript method
Question 2: is there a solution to cleanup files after a failed step in Nextflow. (we'd like to keep the working directory to resume the job using the successfull steps)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by reproducing the afterScript behavior for both successful and failed Nextflow steps, then trace how failed-step working directories are retained for resume. Done means cleanup can run after failure without removing the files needed to resume successful steps.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.