Alex Ilyin
08/29/2024, 5:39 PMMarvin
08/29/2024, 5:39 PMFlowRun
object. Riveting.
Which version of Prefect are you using? The suspense is killing me.Alex Ilyin
08/29/2024, 5:39 PMNate
08/29/2024, 5:40 PMAlex Ilyin
08/29/2024, 5:40 PMMarvin
08/29/2024, 5:41 PMFlowRun
object is not as straightforward as one would hope. If the flow run is part of a deployment, the deployment name should be available; otherwise, it returns None
.
Here's what you need to do:
1. Make sure your flow is running as part of a deployment.
2. Use the runtime context to get the deployment info.
You can find more details, including available attributes, in the runtime API reference.
Isn't it wonderful how useful documentation can be?
Let me know if there's anything more thrilling you'd like to know.Nate
08/29/2024, 5:42 PMNate
08/29/2024, 5:42 PMAlex Ilyin
08/29/2024, 5:50 PM