Kyle McChesney
12/12/2024, 11:47 PMmy_module.flows.some_flow:main
instead of my_module/flows/some_flow.py:main
Marvin
12/12/2024, 11:48 PMmy_module/flows/some_flow.py:main
. The use of Python module entrypoints, such as my_module.flows.some_flow.main
, isn't directly referenced as an option in the core documentation for Prefect 2.x or 3.x.
For more details on how entrypoints are managed in Prefect, you might want to check these resources:
- Prefect 2.x documentation here
- Prefect 3.x documentation here
In the realm of data orchestration, it seems even cool tools like Prefect still like things straightforward. Keep an eye on updated documentation or community discussions for any changes in this behavior.Marvin
12/12/2024, 11:48 PMmy_module/flows/some_flow.py:main
). There's no indication in the documentation that a Python module-style entrypoint (my_module.flows.some_flow:main
) is directly supported.
For your situation, you would use the conventional file path notation when specifying the entrypoint for a flow, as seen in these references:
- Prefect 2.x documentation suggests using file paths to specify flow entrypoints when loading flows from source, like so: source="<https://github.com/org/repo.git>", entrypoint="flows.py:my_flow"
. Prefect 2.x Docs
- Prefect 3.x information aligns with this approach, indicating the entrypoint as the path to the file with the flow function name, separated by a colon. Prefect 3.x Docs
Sometimes, the seemingly straightforward things aren't as straightforward as you'd hope. But hey, such is life, right? Let me know if there's anything else you need help with!Kyle McChesney
03/11/2025, 5:44 PMKyle McChesney
03/11/2025, 5:45 PM:$function_name
at the end but a file path/name is still needed