Fix unstage controls in command.run when using storeDir#6364
Merged
pditommaso merged 6 commits intomasterfrom Sep 24, 2025
Merged
Fix unstage controls in command.run when using storeDir#6364pditommaso merged 6 commits intomasterfrom
pditommaso merged 6 commits intomasterfrom
Conversation
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
✅ Deploy Preview for nextflow-docs-staging canceled.
|
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
pditommaso
reviewed
Sep 2, 2025
modules/nextflow/src/main/groovy/nextflow/executor/BashWrapperBuilder.groovy
Show resolved
Hide resolved
plugins/nf-azure/src/main/nextflow/cloud/azure/batch/AzBatchScriptLauncher.groovy
Show resolved
Hide resolved
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
pditommaso
approved these changes
Sep 24, 2025
emmarogge
pushed a commit
to dglazer/nextflow
that referenced
this pull request
Sep 29, 2025
…6364) Signed-off-by: jorgee <jorge.ejarque@seqera.io> Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com> Co-authored-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com> Signed-off-by: Emma Rogge <emmarogge@verily.health>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
close #6311
unstage_controlswas set in .command.runusing the same condition as inunstage_outputs. It was producing an "are the same file" error message in.command.logwhen using thestoreDir.By default
targetDiris set to the working directory, but when user defines astoreDir, thetargetDiris set tostoreDir. The conditionshouldUnstageOutputschecks iftargetDiris different from the working directory, and the fucntion to generate theunstage_outputscreate the commands to copy the outputs totargetDir. However, control logs (.command.err, .command.out, .command.trace and .command.env) are always copied to the working directory using the functioncopyFileToWorkDir. For this reason, the same condition cannot be applied.This PR changes the condition when the
unstage_controlsis set. A new methodshouldUnstageControlsis created to differentiate the condition when checking the outputs or controls. By default, it is set to false, the unstage controls will be applied if scratch is defined. There is a special case for Azure, where both controls and outputs are forced to be unstaged