Channels
pacc-july-11-12-2023
pacc-sept-20-21-2023
pacc-aug-16-2023
pacc-aug-29-30-2023
pacc-may-31-2023
prefect-ai
pacc-clearcover-june-12-2023
pacc-sept-26-27-2023
pacc-july-6-2023
pacc-oct-11-12-2023
intros-test
livestream-chatter
marvin-in-the-wild
pacc-nov-8-2023
data-ecosystem
geo-israel
pacc-june-14-2023
geo-japan
pacc-london-2023
pacc-sept-13-14-2023
prefect-cloud
ppcc-may-16-2023
prefect-azure
prefect-docker
prefect-recipes
gratitude
geo-nyc
geo-bay-area
geo-boston
geo-london
geo-dc
geo-chicago
geo-berlin
geo-texas
geo-seattle
geo-colorado
pacc-july-17-18-2023
introductions
prefect-server
data-tricks-and-tips
prefect-aws
prefect-gcp
find-a-prefect-job
prefect-dbt
random
events
ask-marvin
show-us-what-you-got
prefect-getting-started
prefect-integrations
prefect-contributors
best-practices
announcements
prefect-ui
prefect-kubernetes
pacc-aug-22-23-2023
prefect-community
Powered by
#prefect-community
Title
# prefect-community
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
Post