Hi! Our team wants to use Parameters with default values to record DRIs for Flows (regardless of who created it or updated it last), so that we can query for it. It seems like I have to use a Parameter in a task for it to show up in Prefect UI? Is there a nicer/better way for me to have a Parameter show up in the UI or be graphQL queryable than to write a dummy task that just prints the Parameter?
04/13/2022, 9:53 AM
The default parameter values you registered your flow with are already visible in the UI. You need to go to the Flow page, and you can see that directly in the Details tab at the very bottom.
04/13/2022, 1:55 PM
You can force the usage with:
with Flow(..) as flow:
x = Parameter("x",3)()
because the first parenthesis is just an init
04/13/2022, 10:54 PM
@Anna Geller I did look there but I didn’t see them if I had not forced usage! I think the init+parens will work, thank you both!