Yes — support for using a Python module path as a deployment
entrypoint
was added in Prefect 3.6.23.
So this is supported:
Copy code
yaml
entrypoint: my_module.my_flow_func
in addition to the older file-based form:
Copy code
yaml
entrypoint: path/to/file.py:my_flow_func
A couple of important notes:
- Prefect distinguishes the formats by separator:
-
:
=> file path entrypoint
- no
:
=> module path entrypoint
- For module-path entrypoints, the module must be importable in the runtime environment.
Relevant docs:
- Deployments concepts
- prefect.yaml deployment guide
If you want, I can also help confirm whether your exact string should be:
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.