Bharat Khaneja
02/21/2025, 6:35 PMMarvin
02/21/2025, 6:35 PMdeploy
, flow
, and serve
.
If you have any specific use cases or need further guidance on how to implement this dynamically, feel free to ask!Bharat Khaneja
02/21/2025, 6:36 PMMarvin
02/21/2025, 6:36 PM@flow
decorator. Changing the flow's name dynamically isn't a common practice and might not be supported directly, as it could affect how the flow is referenced and managed.
If you have a specific use case or need further guidance on workarounds or best practices, I recommend checking the Prefect GitHub repository or reaching out to the Prefect community for more tailored advice.Bharat Khaneja
02/21/2025, 6:37 PMMarvin
02/21/2025, 6:38 PM@flow
decorator, and changing it dynamically at runtime is not a standard feature. The flow name is crucial for identifying the flow within Prefect's orchestration and logging systems.
However, if you need to have different identifiers for flow runs, you might consider using flow run names or tags, which can be dynamically set at runtime. This can help differentiate between runs without altering the core flow name.
For your specific use case, you might want to explore using Prefect's run_name
functionality, which allows you to specify a custom name for each flow run. You can set this when you create a flow run, providing a level of dynamic identification without changing the flow's actual name.
If you need further guidance on implementing this or exploring other options, feel free to ask!