Hello! We’re currently trialing Flyte for some pipelines and one feature we’d make use of are dynamic workflows / map tasks with (run-time) dynamic resource requests. I was thinking of a combination of map_task and with_overrides, something like
would be an iterable of resource limits per (mapped) task. I haven’t been able to find out whether this is possible, could only find a discussion here where imho
with_overrides
applies the same overrides for all mapped tasks.
I’m actually wondering whether something like this could work:
Copy code
@dynamic
def workflow():
input_data_iterable = get_inputs()
results = []
for input_data in input_data_iterable:
results.append(task(input_data).with_overrides(**get_overrides(input_data)))