Skip to content

Commit 2bc1f3b

Browse files
committed
fix coman proxy job check
1 parent 95e6b0f commit 2bc1f3b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coman/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "coman"
3-
version = "0.5.4"
3+
version = "0.5.5"
44
edition = "2024"
55
description = "Compute Manager for managing HPC compute"
66
authors = ["Ralf Grubenmann <ralf.grubenmann@sdsc.ethz.ch>"]

coman/src/cli.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ pub enum CscsCommands {
138138
pub struct ScriptSpec {
139139
#[arg(
140140
long,
141-
help = "generate and upload script file based on template (on by default unless `--local` or `--remote` are passed)"
141+
help = "generate and upload script file based on template (on by default unless `--local-script` or `--remote-script` are passed)"
142142
)]
143143
generate_script: bool,
144144
#[arg(long, value_name = "PATH", help = "upload local script file", value_hint=ValueHint::FilePath)]
@@ -173,7 +173,7 @@ impl From<ScriptSpec> for ScriptSpecEnum {
173173
pub struct EdfSpec {
174174
#[arg(
175175
long,
176-
help = "generate and upload edf file based on template (on by default unless `--local` or `--remote` are passed)"
176+
help = "generate and upload edf file based on template (on by default unless `--local-edf` or `--remote-edf` are passed)"
177177
)]
178178
generate_edf: bool,
179179
#[arg(long, value_name = "PATH", help = "upload local edf file", value_hint=ValueHint::FilePath)]
@@ -465,7 +465,7 @@ pub(crate) async fn cli_proxy_command(system: String, job_id: i64) -> Result<()>
465465
if job_info.is_none() {
466466
return Err(eyre!("remote job does not exist!"));
467467
} else if let Some(job_info) = job_info
468-
&& job_info.status == JobStatus::Running
468+
&& job_info.status != JobStatus::Running
469469
{
470470
return Err(eyre!("remote job is not in running state, connection not available"));
471471
}

0 commit comments

Comments
 (0)