https://prefect.io logo
Title
w

Wright Hilsman

04/06/2023, 5:00 PM
Within a flow run is there a way to access the deployment_name of the flow? I am currently able to access the deployment ID by using
from prefect.context import get_run_context
and then accessing the MetaData from there. Just no deployment name within there sadly.
βœ… 1
z

Zanie

04/06/2023, 5:03 PM
prefect.runtime.deployment.name
:upvote: 1
πŸ‘€ 1
πŸ™Œ 1
This is pretty new so it’s just added to the documentation in the last week https://docs.prefect.io/latest/concepts/runtime-context/
w

Wright Hilsman

04/06/2023, 5:05 PM
Thanks for the magical response, Zanie. You're the best. Checking now