shy-holiday-15500
04/20/2022, 1:54 PMfunctools.partial
and its (possible) flyte equivalent. More details in threadshy-holiday-15500
04/20/2022, 1:54 PMinputs = prepare_inputs(input_list=some_list, static_input_1 = 'value')
results = map_task(task_to_map)(i=inputs)
Where prepare_inputs
basically just zips up the input_list with one or more static values.
In non-flyte python, we use functools.partial for this. We could keep writing a helper task like prepare_inputs
, but we were wondering if there was some more paradigmatic way of doing this in flyte? .with_overrides
is clearly focused on execution parameters (e.g., its use with the spark task) so it doesn't seem like a good target for extending for this use case. It almost seems you like you could do something like functools.partial on the task itself in the workflow, and then add this to flytekit (would be interested in doing this if something like this doesn't already exist or is in the works, couldn't see anything in open issues)shy-holiday-15500
04/20/2022, 1:54 PMacceptable-policeman-57188
thankful-minister-83577
shy-holiday-15500
04/20/2022, 8:32 PMshy-holiday-15500
04/20/2022, 8:32 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
shy-holiday-15500
04/20/2022, 9:22 PMbroad-monitor-993
04/20/2022, 9:39 PMbillowy-sundown-31926
04/20/2022, 11:28 PM