Nick Kagkalos
10/11/2024, 5:48 PMprefect deploy
to create one, and a Git repo as the code source. So far it seems that the Python script needs to live in the parent directory of the repo and not in a subdirectory. Otherwise, the Work Pool throws an error:
FileNotFoundError: [Errno 2] No such file or directory:...
...
prefect.exceptions.ScriptError: Script at 'test_flow_deployment.py' encountered an exception: FileNotFoundError(2, 'No such file or directory')
Prefect's Interactive tool, aside from the Git repo link and branch, doesn't ask for a directory name.
If this is truly the only way to do it, it's definitely not the neatest implementation. But I'd guess there must be a way to direct Prefect to the subdirectories somehow, which I haven't figured out yet.
If anyone knows how to do so, please share your knowledge. TIA!Janet Carson
10/11/2024, 7:05 PMfrom_source
to share where the file isNick Kagkalos
10/12/2024, 12:16 AMflow.from_source(
source="<https://github.com/username/repo.git>",
entrypoint="path/to/script/my_script.py:my_main_flow",
)
Source. Could you please confirm? Thanks again!Janet Carson
10/24/2024, 4:59 PM