cuddly-jelly-27016
02/27/2025, 5:39 PMpyflyte does not realize that the object needs to be uploaded to blob storage. The user would have to proactively configure the raw data prefix.
I would argue that this example is very difficult to understand and debug for users that don't have a clear understanding of Flyte's data model and too "simple" to let users fall into this trap.
As a user I would want flytekit to 1) realize that during registration, files need to be offloaded to blob storage and 2) the backend to specify a default raw data prefix during registration unless I configured it explicitly in my flyte config file.
---
How could this be fixed?
In the FileAccessProvider, we need to prevent that put_raw_data stores offloaded objects locally during registration.
• Is there a way to determine from "the flyte context that we are in registration mode"? Then we could at least catch this error and tell users to configure the raw data prefix.
• Could pyflyte request the raw_data_prefix from flyteadmin if the user didn't set it explicitly and "make the file access provider aware of it"?
flyteorg/flyte