David Ersek
11/30/2023, 12:46 AMFileNotFoundError: [Errno 2] No such file or directory: '/opt/prefect/flows/datalake_etl/flows/datalake_etl'
for a deployment with
path: flows/datalake_etl
We're working with the old storage block approach (yes we could update, but just trying to get our version updated with minimal changes)
It seems to me like https://github.com/PrefectHQ/prefect/blob/cf3f32896acf072bca5cc4d16d6b48f0297ffc8c/src/prefect/deployments/deployments.py#L222-L235 will always fail since the basepath
and from_path
are the same if deployment.path
is set. Since https://github.com/PrefectHQ/prefect/pull/10258/files was released (looks like in 2.11.0) I'm wondering if the relative resolution is causing issues with the deployment loading code when it's using the LocalFileSystem block.
Seems like we'd want from_path to be None if the storage_block is LocalFileSystem (since basepath already uses deployment.path
)?