Git Product home page Git Product logo

Comments (3)

welcome avatar welcome commented on June 25, 2024

Thank you for opening your first issue here! 🛠

from flyte.

runllm avatar runllm commented on June 25, 2024

The behavior you're encountering with Promise objects in Flyte is due to their design to act as placeholders for values that are not yet computed, rather than iterable objects. The issue you described is similar to a known problem where iterating over a Promise does not behave as expected because Python's __iter__ method is called, which can lead to infinite loops or memory issues if not handled correctly. This is documented in a related Flyte issue where iterating over a list of FlyteFile objects within a dynamic task caused infinite loops and memory growth (Flyte issue #5164).

Promise objects are not designed to be directly iterable. The correct approach is to ensure that the task outputs are fully materialized before attempting operations like extending a list. This can be managed by structuring your workflows and tasks to handle dependencies and outputs appropriately, ensuring that Promise objects are resolved before such operations.

Would you like a more detailed explanation on how to structure your Flyte tasks and workflows to avoid such issues?

Sources:


This is an AI-generated response and your feedback is appreciated! Please leave a 👍 if this is helpful and 👎 if it is not.

Mention @RunLLM to ask follow-up questions. See runllm.com for more!

from flyte.

BeckerFelix avatar BeckerFelix commented on June 25, 2024

Reading through linked issue, I see that this issue was closed by flyteorg/flytekit#2337 already. We just need to update our Flyte version.

from flyte.

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.