Skip to content

Conversation

@ejMina226
Copy link
Contributor

@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

3 participants