Qiong Liu
02/29/2024, 3:07 PMa list input.
I'm wondering what change has been made and how can UI show the override value of a list parameterNate
02/29/2024, 3:15 PMCraig Harshbarger
02/29/2024, 3:27 PMQiong Liu
02/29/2024, 3:41 PMParameter
tag . And my prefect.yaml configuration for the deployment.
The override value here is more like a hint for users to use when they run the deployment. So we would like to show them if possibleNate
02/29/2024, 3:41 PMclass Plumbus(BaseModel):
size: str
color: str
@flow
def use_plumbus(plumbus: Plumbus, numbers: list[int]) -> None:
so we can see what types the UI is trying to represent in the form
it looks like in your case its probably
def reader(buckets: list[str], runner: str):
Qiong Liu
02/29/2024, 3:44 PM@flow(
name="Bucket Reader",
log_prints=True,
flow_run_name="bucket-reader-{runner}-" + f"{get_time()}",
)
def reader(*buckets, runner: str):
# create a logging object
runner_logger = get_run_logger()
Nate
02/29/2024, 3:45 PMbuckets
like that with the *
- let me try and reproQiong Liu
02/29/2024, 3:48 PMNate
02/29/2024, 3:49 PMfrom prefect import flow
@flow
def foo(*buckets, runner: str) -> None:
print(buckets)
if __name__ == "__main__":
foo.serve("splat")
(first pic)
whereas this
from prefect import flow
@flow
def foo(buckets: list[str], runner: str) -> None:
print(buckets)
if __name__ == "__main__":
foo.serve("splat")
(second)Nate
02/29/2024, 3:50 PMQiong Liu
02/29/2024, 4:02 PM