abundant-laptop-64153
07/03/2025, 6:59 PM@task(timeout=10)
def sleep_task(sleep_duration: int) -> int:
sleep(sleep_duration)
return sleep_duration
@workflow
def map_task_timeout_wf() -> int:
items = generate_list(list_size=10, min=5, max=15)
values = map_task(target=sleep_task, concurrency=3, min_successes=1)(
sleep_duration=items
)
result: int = sum_data(values=values)
return result
Where the above should fail about 50% of tasks (sleeping between 5 and 15 seconds on a 10 second timeout). The moment 1 fails, the workflow fails with
[1]: [1/1] currentAttempt done. Last Error: USER::task execution timeout [10s] expired
Is this intended? Is there a workaround?clean-glass-36808
07/03/2025, 9:23 PM@fl.workflow(
# The workflow remains unaffected if one of the nodes encounters an error, as long as other executable nodes are still available
failure_policy=WorkflowFailurePolicy.FAIL_AFTER_EXECUTABLE_NODES_COMPLETE
)