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

Record resolving order in the sequencer and start modules based on that #245

Merged
merged 4 commits into from
Dec 13, 2024

Conversation

ejMina226
Copy link
Collaborator

@ejMina226 ejMina226 commented Dec 13, 2024

Presently, the sequencer uses tsyringe to resolve modules (and their dependencies) and then starts them. However, this can be problematic as although tsyringe may resolve dependencies, it doesn't actually start them. For example, a database may be created, but the connection strings, etc, won't be constructed until it's started, and this may cause an error if a module that relies on it is started first. The way to resolve this is ensure that we start modules based on the order they were resolved.

@ejMina226 ejMina226 self-assigned this Dec 13, 2024
@ejMina226 ejMina226 requested a review from rpanic December 13, 2024 15:51
Copy link
Member

@rpanic rpanic left a comment

Choose a reason for hiding this comment

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

Lgtm

@ejMina226 ejMina226 merged commit 2d5ca04 into develop Dec 13, 2024
5 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.

Record resolving order in the sequencer and start modules based on that
2 participants