Skip to content

feat: support flow_name from prefect.yaml#283

Merged
mitchnielsen merged 2 commits into
PrefectHQ:mainfrom
c-core-labs:main
Jun 29, 2026
Merged

feat: support flow_name from prefect.yaml#283
mitchnielsen merged 2 commits into
PrefectHQ:mainfrom
c-core-labs:main

Conversation

@jthetzel

Copy link
Copy Markdown
Contributor

Add support for flow_run to specify a deployment's flow name. For background, see #280 .

Given this flow:

@flow(name="flow-foo")
def flow_foo():
    print("bar")

And this (pseudo) manifest:

apiVersion: prefect.io/v1
kind: PrefectDeployment
metadata:
 name: deployment-foo
 namespace: prefect
spec:
 deployment:
   flow_name: flow-run
   entrypoint: app.foo:flow_run

Before this branch, deployment is named

flow_foo/deployment-foo

With this branch, deployment is named

flow-foo/deployment-foo

@jthetzel jthetzel requested review from a team as code owners June 22, 2026 21:11
@jthetzel

Copy link
Copy Markdown
Contributor Author

@mitchnielsen mitchnielsen self-requested a review June 23, 2026 20:07

@mitchnielsen mitchnielsen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this @jthetzel! One small suggestion.

Comment thread api/v1/zz_generated.deepcopy.go
jthetzel added 2 commits June 28, 2026 09:09
* feat: Support `flow_name` from prefect.yaml.

* docs: Make docs

* refactor: Change flowRun to flow_run
@mitchnielsen mitchnielsen changed the title feat: Support flow_name from prefect.yaml. (#1) feat: support flow_name from prefect.yaml Jun 29, 2026

@mitchnielsen mitchnielsen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again @jthetzel 🤝

@mitchnielsen mitchnielsen merged commit a7c933b into PrefectHQ:main Jun 29, 2026
8 checks passed
@mitchnielsen mitchnielsen added the enhancement New feature or request label Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants