https://prefect.io logo
t

Trevor Kramer

03/27/2021, 10:59 PM
Is it possible to set the default value of a Parameter to be a lambda instead of a value? I want to re-create something like the flow names generated by the cloud ui.
d

Dylan

03/29/2021, 2:14 PM
HI @Trevor Kramer! I tend to create a task that accepts a static Parameter and passes it along if provided, but otherwise returns a dynamic value. Can you tell me a bit more about what you’re trying to achieve?
z

Zanie

03/29/2021, 2:34 PM
& to clarify, it's not possible to set the default value dynamically the same way you set a static value because the value must be serializable for display in the UI.
3 Views