Comments (6)
Ah, got it, so this is a feature enhancement we need to do: support input from parameters not only output artifacts!
from hera.
Hello, at the moment I have created a wrapper for the Task class, for now it's working for me, I would like work in this feature, but I don't know if internally they are already working on it.
In this comment you can see my implementation, still under construction.
#138 (comment)
from hera.
Hello @xiang9156! Yes, one can use input/output artifacts for passing files between tasks. Here's an example 🙂 In that example the writer
writes a file to a specific path, which is listed as an OutputArtifact
, then the consumer reads that file, which is listed as an InputArtifact
.
from hera.
Closing this issue as I am pretty confident this is supported and the example showcases how to take advantage of the feature! Feel free to reopen if the answer was not clear 🙂
from hera.
@flaviuvadan Could we provide a way to parse json from artifact output directly without starting a new task?
from hera.
Hello @xiang9156! Yes, one can use input/output artifacts for passing files between tasks. Here's an example 🙂 In that example the
writer
writes a file to a specific path, which is listed as anOutputArtifact
, then the consumer reads that file, which is listed as anInputArtifact
.
Thank you @flaviuvadan for the reply. Right now we are using the output parameters instead of artifacts, so that we can refer the json parameter like this "{{=jsonpath(tasks['entry'].outputs.parameters.result, '$.result.job_id')}}"
, I checked the examples you shared, looks like it needs a middle layer to read the output artifact and print it to stdout.
from hera.
Related Issues (20)
- Script annotations + runner for annotated strings breaks for json strs HOT 1
- Improve Hera I/O models HOT 1
- Script annotation inputs doesn't play well with `with_param`
- Lifecycle Hooks arguments and support for Steps / DAGs HOT 1
- HTTPGetAction "port: int" will output as string in yaml HOT 1
- get_workflow_link() doesn't form perfect URLs when workflows is running with BASE_HREF HOT 3
- Upgrading to 5.10 causes validation error HOT 6
- parameter output regression HOT 1
- Improve example directory structure to accommodate complex "mini projects" HOT 4
- Container ImagePullPolicy builds an incompatible type HOT 2
- On-cluster testing improvements
- Support loaders for script Parameters HOT 1
- make test is broken with cappa dependency HOT 1
- Create a hera mypy plugin HOT 1
- Error messages improvement
- Arguments mapping is very verbose depending on use case
- Remove the need to write `.value` on `Parameter`s passed to `arguments` HOT 1
- How to set a workflow parameters default value HOT 1
- VolumeMounts for sidecars disappear
- Robust validation for k8s resource requirements
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hera.