Len Strnad
07/18/2023, 9:32 PM@task(timeout=10)
def task1(a: int):
time.sleep(a)
@workflow
def my_workflow():
result = map_task(task1, min_success_ratio=0.0)(a=[1,2,10,11,12])
[1/1] currentAttempt done. Last Error: USER::task execution timeout [10s] expired
Niels Bantilan
07/18/2023, 9:40 PMLen Strnad
07/18/2023, 9:41 PMNiels Bantilan
07/18/2023, 9:45 PMLen Strnad
07/18/2023, 9:46 PMNiels Bantilan
07/18/2023, 9:47 PMmin_success_ratio
in the map_task definition to say what percentage of tasks within the maptask would count as an overall successLen Strnad
07/18/2023, 9:47 PMNiels Bantilan
07/18/2023, 9:49 PMLen Strnad
07/18/2023, 9:50 PMNiels Bantilan
07/18/2023, 9:51 PMmin_success_ratio
only considers exceptions raised within the actual task and not timed out tasks…Len Strnad
07/18/2023, 9:51 PMNiels Bantilan
07/18/2023, 9:55 PMLen Strnad
07/18/2023, 9:56 PMNiels Bantilan
07/18/2023, 9:56 PMEduardo Apolinario (eapolinario)
07/18/2023, 10:26 PMLen Strnad
07/18/2023, 10:37 PMNizar Hattab
07/19/2023, 9:28 AM