cool-lifeguard-49380
12/05/2023, 3:51 PMlist_q: list[int] = [1, 2, 3, 4, 5]
, there are 10 executions according to the UI? There also have been only 5 pods.cool-lifeguard-49380
12/05/2023, 3:51 PMimport functools
from flytekit import map_task, task, workflow
@task
def multi_input_task(quantity: int, price: float, shipping: float) -> float:
return quantity * price * shipping
@workflow
def multiple_workflow(list_q: list[int] = [1, 2, 3, 4, 5], p: float = 6.0, s: float = 7.0) -> list[float]:
partial_task = functools.partial(multi_input_task, price=p, shipping=s)
return map_task(partial_task)(quantity=list_q)
cool-lifeguard-49380
12/05/2023, 3:51 PMhallowed-mouse-14616
12/05/2023, 4:36 PMcool-lifeguard-49380
12/05/2023, 4:53 PMcool-lifeguard-49380
12/05/2023, 4:57 PMcool-lifeguard-49380
12/05/2023, 5:05 PM