adap / flower

Flower: A Friendly Federated Learning Framework
https://flower.ai
Apache License 2.0
4.92k stars 848 forks source link

refactor(framework) Handle unsuitable resources for simulation #4143

Closed jafermarq closed 2 weeks ago

jafermarq commented 3 weeks ago

Moved creation of actor pool in RayBackend to the backend's .build() method. This is in not only a better place "semantically" speaking for constructing the pool of actors, but also prevents the backend obj construction to fail. This is important since, if the actor pool construction fails (e.g. if not resources area available in the system), it still enables the graceful termination of the simulation engine.