Join Slack
Powered by
Within a flow run is there a way to access the dep...
# ask-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
Zanie
04/06/2023, 5:03 PM
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
Open in Slack
Previous
Next