Comments (1)
To address the issue of task failure in non-fast register mode due to the absence of user code in the default image, the proposal to change the default image to an ImageSpec
object is a viable solution. This change would ensure that Flytekit builds the image at compile time and includes the user code, thus preventing runtime failures.
However, this approach requires modifications to the Flytekit configuration to use ImageSpec
as the default for task images. Currently, Flytekit does not automatically build images unless explicitly specified by the user through an ImageSpec
. Implementing this change would involve altering the default behavior of image handling in Flytekit, potentially affecting all users.
An alternative, as mentioned, is to raise an exception at compile time when container_name
is None in non-fast mode. This would enforce that users specify their container configurations explicitly, ensuring that the necessary code is included in the image used for execution.
Both solutions have implications for Flytekit's usability and user experience. The first approach simplifies the user workflow by automating image builds but increases build times and complexity. The second approach places more responsibility on the user to manage their image configurations but maintains current performance and behavior.
Would you like more detailed information on how to implement these changes in Flytekit, or further discussion on the potential impacts of each solution?
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.
Related Issues (20)
- [BUG] Accessing attributes fails on complex types HOT 3
- [BUG] Plugin Collector does not include group HOT 4
- [BUG] Flyte v1.11.0 will fail to load the task's input & output ran by Flyte v1.3.2 HOT 1
- [BUG] Task errors are not directly surfaced in unit tests in 1.12.0 HOT 3
- [Docs] Help messages, error messages, and documentation for `pyflyte package` unfortunately result in a very bad first-time UX HOT 1
- [Core Feature] Local logs for local container task executions. HOT 1
- [BUG] Task should not attempt to retry if fails to deserialize the input HOT 2
- [BUG] Local `FlyteFile` whose name contains spaces fail in remote execution with "File Not Found" error
- [Housekeeping] Add support for protobuf version 5 in flytekit HOT 1
- [BUG] When triggering a remote LP, Flytekit fails with TypeError: 'NoneType' object is not subscriptable HOT 5
- [BUG] python task retries=n causes "Requests overridden" error log message for interruptible task HOT 1
- [BUG] Handler for .well-known/openid-configuration constructs redirect path incorrectly HOT 2
- [Core feature] LiteralBlob and StructuredDataset metadata HOT 1
- More flexible configuration of SecurityContext for Pods/Containers started by flyte HOT 6
- [Core feature] `@dynamic` should accept all (?) of `@workflow` attributes HOT 1
- [BUG] Tasks from subworkflow calling reference launch plan read cache from different projects HOT 2
- [BUG] New versions of viper breaks config loading HOT 3
- [BUG] nested dynamic won't bind pydantic models or dictionaries as inputs HOT 2
- [Core feature] Build multiple ImageSpec in parallel HOT 2
- [Housekeeping] Distributed Tracing Should Support OTLP Exporters HOT 1
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 flyte.