Kyle McChesney
03/13/2025, 6:15 PM$flow_file.py:my_flow_func
?Marvin
03/13/2025, 6:16 PM<path_to_script>:<flow_func_name>
. Prefect does not automatically detect the flow function in a file if you only provide the file path. For instance, you should use my_flow_file.py:my_flow_func
.
Here are some relevant resources:
- Prefect Flows Documentation
- Example Script for Flow Entrypoints
If you have any more questions or need further clarification, feel free to ask.Marvin
03/13/2025, 6:16 PM$flow_file.py:my_flow_func
. Prefect requires the full path to the flow function, including both the file and the function name. This ensures that Prefect can correctly locate and execute the desired flow.
For more details, you can explore the relevant Prefect documentation and code examples:
- Flow Entrypoint Example
- Flow Engine Code
If you're curious about the top-level API, Prefect includes features like flow
, task
, deploy
, and others, which might be helpful for your work.