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

improve execute to eliminate race conditions #99

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

geoffhendrey
Copy link
Contributor

Description

it was possible that there could be race conditions in parallel plans, because the _execute promise started before it was put in the promises map. This code fixes it, and deals with deadlocks that happen in circular plans by adding circular:boolean to the PlanStep so that execution can be stopped when circularity is detected.

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change
  • [ x] Refactor
  • Documentation
  • Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • [x ] New code contribution is covered by automated tests
  • All new and existing tests pass

@geoffhendrey geoffhendrey requested a review from a team as a code owner January 21, 2025 04:34
@geoffhendrey geoffhendrey merged commit 58f2c5e into main Jan 21, 2025
2 checks passed
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.

1 participant