Git Product home page Git Product logo

Comments (2)

runllm avatar runllm commented on September 27, 2024

The issue you're describing seems to be related to how Flyte handles caching across different projects when using reference launch plans. According to the Flyte documentation on remote caching, cache keys are composed of the Project, Domain, Cache Version, Task Signature, and Task Input Values. This design ensures that task executions are isolated by project and domain to prevent data corruption.

However, your observation indicates that the cache key is being derived from the reference launch plan's identifier, which includes the project, version, domain, and name of the launch plan. This could lead to cache hits across different projects, which is not the intended behavior.

Expected Behavior

Cache keys should be specific to the project and domain of the current task execution, not the reference launch plan. This would ensure that tasks do not inadvertently read cached results from executions in other projects.

Rationale

The current design might be intended to facilitate reusability and efficiency, but it compromises the isolation between projects. Changing the cache key derivation to include the current task's project and domain would align with the documented behavior and ensure data integrity.

Would you like more details on how to potentially address this issue or any specific part of the caching mechanism?

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.

eapolinario avatar eapolinario commented on September 27, 2024

@ysysys3074 , this is working as intended. This has deep implications about how Flyte entities (e.g. tasks and launch plans) are registered in the backend and how we refer to them. In the specific case of reference entities, they are tied to their original project+domain+name+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.