<@ULVA73B9P> can you confirm what version of prefe...
# ask-marvin
k
@Marvin can you confirm what version of prefect added support for specifying a python module path like
<http://my_module.my|my_module.my>_<http://flow.my|flow.my>_func
for the deployment entrypoint field?
m
thought for 90.3 seconds
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:
my_module.my_flow_func
or
my_package.my_module:my_flow_func
depending on how your code is laid out.