Giter Site home page Giter Site logo

Support input from parameters not only output artifacts (orig: How to get output parameters from output file instead of stdout?) about hera HOT 6 CLOSED

argoproj-labs avatar argoproj-labs commented on May 26, 2024
Support input from parameters not only output artifacts (orig: How to get output parameters from output file instead of stdout?)

from hera.

Comments (6)

flaviuvadan avatar flaviuvadan commented on May 26, 2024 1

Ah, got it, so this is a feature enhancement we need to do: support input from parameters not only output artifacts!

from hera.

MichaelLan avatar MichaelLan commented on May 26, 2024 1

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.

flaviuvadan avatar flaviuvadan commented on May 26, 2024

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.

flaviuvadan avatar flaviuvadan commented on May 26, 2024

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.

RunningIkkyu avatar RunningIkkyu commented on May 26, 2024

@flaviuvadan Could we provide a way to parse json from artifact output directly without starting a new task?

from hera.

xiang9156 avatar xiang9156 commented on May 26, 2024

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.

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.