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

magicbot: toposort components to determine initialization order #211

Open
virtuald opened this issue Sep 5, 2024 · 0 comments
Open

magicbot: toposort components to determine initialization order #211

virtuald opened this issue Sep 5, 2024 · 0 comments
Labels
enhancement magicbot magicbot package

Comments

@virtuald
Copy link
Member

virtuald commented Sep 5, 2024

As mentioned at https://www.chiefdelphi.com/t/magicbot-component-initialization-vs-execution-order/470604, you can have situations where the high level component needs something from a lower level component at setup/__init__ but it hasn't been initialized yet.

It should be pretty easy to create a DAG from dependent components and toposort them to determine the correct order of initialization such that dependent components are always initialized first.

@auscompgeek auscompgeek added enhancement magicbot magicbot package labels Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement magicbot magicbot package
Projects
None yet
Development

No branches or pull requests

2 participants