Skip to content

Latest commit

 

History

History

example-bonus

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Interactive debugging of remotely executed tasks

Summary

This example shows how Wave and Fusion file system can be used to debug interactively pipeline tasks regardless of whether they were executed on the local computer or remotely.

Config

This feature requires Wave and Fusion file system to both be enabled in your pipeline configuration.

workDir = 's3://some-bucket/work'

wave {
  enabled = true
}

fusion {
  enabled = true
  exportStorageCredentials = true
}

docker {
  enabled = true
}

Make sure you replace the value in workDir above with an AWS S3 bucket that you have access to. Note: the docker section is not needed when running with AWS Batch.

Run it

nextflow run rnaseq-nf 

For purposes of this example, the rnaseq-nf pipeline can be used. Run it locally or using the AWS Batch executor by adding the -p batch profile option.

Once execution completes, either successfully or with a failure, any task’s execution can be debugged in an interactive shell session using this command:

nextflow plugin nf-wave:debug-task <task hash or name or workdir>

For the task hash in the command above, use the unique task hash id generated during your pipeline’s execution. e.g. d8/d067e8.

Note: currently, task debugging is only possible up until the expiry of the temporary token associated with the container’s execution — that is, 12 hours from the task's creation.