Hi, we are using FlyteFiles a lot in our workflows and sometimes we need to access the remote_source property of the FlyteFile. When running workflows locally, remote_source is None, which means we have to explicitly check "if remote_source is None -> use .path instead". To make local execution of flyte workflows be as close as possible to the remote execution, in my opinion it would be a better user experience to have remote_source locally contain the same value as .path. The same strategy is applied when calling .download() i.e. it returns the local path, instead of actually downloading something. I would add this to the list of FlyteFile UX improvements (https://github.com/flyteorg/flyte/issues/4542), but first would like to hear some opinions and if there are some technical implications. Thanks.
f
freezing-airport-6809
01/15/2024, 4:03 PM
That should not be the case? It should have the remote surrender to a local path
cc @broad-monitor-993 is this something you did, where FlyteFile is only set on path?
b
broad-monitor-993
01/22/2024, 5:22 PM
Not sure, this PR may have caused this behavior: the intent was to use the original file/directory path on local executions instead of copying it over to a temporary location