diff --git a/golem_cli/src/command/provider.rs b/golem_cli/src/command/provider.rs index dd4099cd2e..7dfdb05f78 100644 --- a/golem_cli/src/command/provider.rs +++ b/golem_cli/src/command/provider.rs @@ -8,6 +8,8 @@ pub use ya_provider::GlobalsState as ProviderConfig; use crate::setup::RunConfig; +const CLASSIC_RUNTIMES: &'static [&'static str] = &["wasm", "vw"]; + pub struct YaProviderCommand { pub(super) cmd: Command, } @@ -159,7 +161,7 @@ impl YaProviderCommand { self.exec_no_output().await } - pub async fn update_all_presets( + pub async fn update_classic_presets( mut self, starting_fee: Option, env_per_sec: Option, @@ -177,7 +179,9 @@ impl YaProviderCommand { if let Some(initial) = starting_fee { cmd.arg("--price").arg(format!("Init price={}", initial)); } - cmd.arg("--all"); + for runtime_name in CLASSIC_RUNTIMES { + cmd.arg(format!("--name {}", runtime_name)); + } self.exec_no_output().await } diff --git a/golem_cli/src/settings.rs b/golem_cli/src/settings.rs index fcfe91335e..9fb599be5c 100644 --- a/golem_cli/src/settings.rs +++ b/golem_cli/src/settings.rs @@ -87,7 +87,7 @@ pub async fn run(settings: Settings) -> Result { || settings.cpu_per_hour.is_some() { cmd.ya_provider()? - .update_all_presets( + .update_classic_presets( settings.starting_fee, settings.env_per_hour.map(|p| p / 3600.0), settings.cpu_per_hour.map(|p| p / 3600.0),