-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: fix download when workflow does not have outputs
Closes #147
- Loading branch information
Showing
3 changed files
with
55 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
40 changes: 40 additions & 0 deletions
40
testdata/inputs/workflow_specification_without_outputs.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"parameters": {}, | ||
"specification": { | ||
"inputs": { | ||
"files": [ | ||
"code/gendata.C", | ||
"code/fitdata.C" | ||
], | ||
"parameters": { | ||
"data": "results/data.root", | ||
"events": 20000, | ||
"plot": "results/plot.png" | ||
} | ||
}, | ||
"version": "0.6.0", | ||
"workflow": { | ||
"specification": { | ||
"steps": [ | ||
{ | ||
"commands": [ | ||
"mkdir -p results && root -b -q 'code/gendata.C(${events},\"${data}\")'" | ||
], | ||
"environment": "reanahub/reana-env-root6:6.18.04", | ||
"kubernetes_memory_limit": "256Mi", | ||
"name": "gendata" | ||
}, | ||
{ | ||
"commands": [ | ||
"root -b -q 'code/fitdata.C(\"${data}\",\"${plot}\")'" | ||
], | ||
"environment": "reanahub/reana-env-root6:6.18.04", | ||
"kubernetes_memory_limit": "256Mi", | ||
"name": "fitdata" | ||
} | ||
] | ||
}, | ||
"type": "serial" | ||
} | ||
} | ||
} |