Skip to content

Commit abc4230

Browse files
committed
Fix(sdk): Fix completion logic hole for map/parallel
1 parent 9f10e82 commit abc4230

File tree

1 file changed

+1
-9
lines changed
  • src/aws_durable_execution_sdk_python/concurrency

1 file changed

+1
-9
lines changed

src/aws_durable_execution_sdk_python/concurrency/models.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -415,15 +415,7 @@ def is_complete(self) -> bool:
415415

416416
# All tasks completed
417417
if completed_count == self.total_tasks:
418-
# Complete if no failure tolerance OR no failures OR min successful reached
419-
return (
420-
(
421-
self.tolerated_failure_count is None
422-
and self.tolerated_failure_percentage is None
423-
)
424-
or self.failure_count == 0
425-
or self.success_count >= self.min_successful
426-
)
418+
return True
427419

428420
# when we breach min successful, we've completed
429421
return self.success_count >= self.min_successful

0 commit comments

Comments
 (0)