Frank Shen
06/13/2023, 2:19 AM@workflow
def wf(region: str = 'us') -> None:
mem = '80Gi' if region == 'us' else '40Gi'
train(region=region).with_overrides(requests=Resources(mem=mem)) # train() is a task
How can I request dynamic resource values and re-use the same workflow function, so that I don’t have to create separate wf_us() & wf_other_regions(), etc. since I have a lot of tasks in the workflow that will be cut and pasted. (edited)jeev
Greg Gydush
06/13/2023, 1:51 PMFrank Shen
06/13/2023, 5:59 PMGreg Gydush
06/13/2023, 6:01 PM