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 {
85
85
protected void storeTaskOutput (TaskRun task , Path path ) {
86
86
final attrs = readAttributes(path)
87
87
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"
89
91
final hash = CacheHelper . hasher(path). hash(). toString()
90
92
final value = new TaskOutput (
91
93
DataType.Output ,
92
- " cid://$key " ,
94
+ uri,
95
+ path. toUriString(),
93
96
hash,
94
97
attrs. size(),
95
98
attrs. creationTime(). toMillis(),
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import groovy.transform.CompileStatic
29
29
class TaskOutput {
30
30
DataType type
31
31
String uri
32
+ String realPath
32
33
String hash
33
34
long size
34
35
long createdAt
You can’t perform that action at this time.
0 commit comments