Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): avoid infinite loop in the executor for Flowable tasks #1746

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

loicmathieu
Copy link
Member

Fixes #1745

In the executor, when a flowable task throw an exception when calling resolveNexts() this will fail the current evaluation of the executor that will be retried indefinitly. Catching exception and returing an empty next will avoid the infinite loop and the task will fail properly.

Copy link
Member

@Skraye Skraye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Fixes #1745

In the executor, when a flowable task throw an exception when calling `resolveNexts()` this will fail the current evaluation of the executor that will be retried indefinitly.
Catching exception and returing an empty next will avoid the infinite loop and the task will fail properly.
@loicmathieu loicmathieu force-pushed the fix/inifite-loop-flowable branch from 0af92d4 to cab32b6 Compare July 17, 2023 07:38
@loicmathieu loicmathieu merged commit d102e22 into develop Jul 17, 2023
@loicmathieu loicmathieu deleted the fix/inifite-loop-flowable branch July 17, 2023 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Infinite loop in the executor if a flowable task fail
2 participants