File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
modules/nextflow/src/main/groovy/nextflow/data/cid Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -85,11 +85,14 @@ class CidObserver implements TraceObserver {
8585 protected void storeTaskOutput (TaskRun task , Path path ) {
8686 final attrs = readAttributes(path)
8787 final rel = task. workDir. relativize(path). toString()
88- final key = " ${ task.hash} /${ rel} /.data.json"
88+ final cid = " ${ task.hash} /${ rel} "
89+ final uri = " cid://${ cid} "
90+ final key = " ${ cid} /.data.json"
8991 final hash = CacheHelper . hasher(path). hash(). toString()
9092 final value = new TaskOutput (
9193 DataType.Output ,
92- " cid://$key " ,
94+ uri,
95+ path. toUriString(),
9396 hash,
9497 attrs. size(),
9598 attrs. creationTime(). toMillis(),
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import groovy.transform.CompileStatic
2929class TaskOutput {
3030 DataType type
3131 String uri
32+ String realPath
3233 String hash
3334 long size
3435 long createdAt
You can’t perform that action at this time.
0 commit comments