https://prefect.io logo
j

Jeremy Hetzel

08/23/2023, 3:14 PM
For deployments, the documentation for
flow_name
state:
Deprecated: The name of a flow that has been registered in the `.prefect` directory. Either
flow_name
or
entrypoint
is required.
( https://docs.prefect.io/2.11.4/concepts/deployments/#deployment-declaration-reference ) However, in the source code, a deployment without a
flow_name
always raises a `ValueError`:
Copy code
if not self.name or not self.flow_name:
            raise ValueError("Both a deployment name and flow name must be set.")
( https://github.com/PrefectHQ/prefect/blob/2.11.4/src/prefect/deployments/deployments.py#L686 ) Am I misreading the documentation, or should this be raised as an issue on github?
1
s

Serina

08/23/2023, 3:19 PM
Hi @Jeremy Hetzel, that looks to be a documentation issue! Thanks for pointing that out. We’ll get a fix in for it.
j

Jeremy Hetzel

08/23/2023, 3:27 PM
s

Serina

08/23/2023, 3:32 PM
Thanks so much! A PR is up for review: https://github.com/PrefectHQ/prefect/pull/10477
The PR is merged 🙂 I’ll go ahead and mark this thread as completed 👋
sonic 1