nextflow icon indicating copy to clipboard operation
nextflow copied to clipboard

Extend observer with onFileStage

Open rcannood opened this issue 8 months ago • 3 comments

Closes #5905

rcannood avatar Mar 20 '25 20:03 rcannood

Deploy Preview for nextflow-docs-staging canceled.

Name Link
Latest commit acd641ab70d2faaa6661275ea1f89f2f6a59435f
Latest deploy log https://app.netlify.com/sites/nextflow-docs-staging/deploys/67dd2f4bbf42a300087d8f32

netlify[bot] avatar Mar 20 '25 20:03 netlify[bot]

Before we go down this road, we should see if we can simply preserve the remote path here:

https://github.com/nextflow-io/nextflow/blob/36153c68ffb11685d7085737404694ee613bdac8/modules/nextflow/src/main/groovy/nextflow/processor/TaskProcessor.groovy#L1943

Then you should be able to use the onProcessPending event in the trace observer to get the original path via handler.task.inputs. That would be preferable to adding a new trace event

bentsherman avatar Mar 20 '25 20:03 bentsherman

Before we go down this road, we should see if we can simply preserve the remote path here:

Added to #5911 -- not sure whether this is what you had in mind.

Having said that, I wonder whether adding this function to the observer isn't also just a good addition, because it would make it super clear from the documentation how to get observe staging events.

rcannood avatar Mar 21 '25 08:03 rcannood

Closing in favor of #5911

bentsherman avatar Aug 18 '25 16:08 bentsherman