Skip to content

fix: Possible race condition on Orchestrator API initialization #9713

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ovr
Copy link
Member

@ovr ovr commented Jun 25, 2025

No description provided.

@ovr ovr requested a review from a team as a code owner June 25, 2025 21:47

// orchestrator options can be empty, if user didn't define it.
// so we are adding default and configuring queues concurrency.
const orchestratorOptions =
Copy link
Member Author

@ovr ovr Jun 25, 2025

Choose a reason for hiding this comment

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

As you can see, there is an await point here at (await this.orchestratorOptions(context)) || {},. it's defined between first get/set and set as init point.

With this, it's possible to have two orchestrator API instances, if it's called immediately at one time.

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