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

refactor(framework) Improve app loading in simulation engine #3806

Merged
merged 12 commits into from
Jul 15, 2024

Conversation

jafermarq
Copy link
Contributor

@jafermarq jafermarq commented Jul 15, 2024

The core of the Simulation Engine has a simple mechanism to load the function that would eventually return a ClientApp. As Flower has rapidly evolved in terms of what's the origin of a ClientApp object (e.g. a simple python file, or a full FAB) so it has the ways of loading these apps (e.g. loading an associated pyproject.toml)

This PR reuses the same mechanism that flower-supernode uses to load a function that returns a ClientApp. This step represent the first step towards being able to run full FABs from flower-simulation.

In addition, this PR caches the ClientApp before starting the simulation, making them more efficient to run.

@jafermarq jafermarq changed the title refactor(framework) Handle better the loading of client_app function refactor(framework) Handle better the loading of client_app function in simulation engine Jul 15, 2024
@jafermarq jafermarq marked this pull request as ready for review July 15, 2024 19:03
@danieljanes danieljanes changed the title refactor(framework) Handle better the loading of client_app function in simulation engine refactor(framework) Improve app loading in simulation engine Jul 15, 2024
@danieljanes danieljanes enabled auto-merge (squash) July 15, 2024 19:33
@danieljanes danieljanes merged commit 22bbc00 into main Jul 15, 2024
29 checks passed
@danieljanes danieljanes deleted the unify-load-clietnapp-fn-throughout branch July 15, 2024 19:36
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.

2 participants