lablup / backend.ai-webui

Backend.AI Web UI for web / desktop app (Windows/Linux/macOS). Backend.AI Web UI provides a convenient environment for users, while allowing various commands to be executed without CLI. It also provides some visual features that are not provided by the CLI, such as dashboards and statistics.
https://www.backend.ai
GNU Lesser General Public License v3.0
110 stars 73 forks source link

Filter unavailable resource preset when hideAgent is false. #2836

Open agatha197 opened 1 week ago

agatha197 commented 1 week ago

Main idea

Through https://github.com/lablup/backend.ai-webui/pull/2599, we can select an agent. However, there is no logic in filtering the resource presets when selecting a specific agent. Since a maximum of 2 cores can be allocated in the above figure, only cpu01-small and cuda01-small should be enabled.

Let's modify it so that only the available resource presets for the selected agent are enabled.

Alternative ideas

No response

Anything else?

No response