Skip to content

Commit 31fde46

Browse files
authored
fix: sometimes cancelled status contains an id (#39)
1 parent 90b1239 commit 31fde46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

coman/src/cscs/api_client/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pub enum JobStatus {
142142
}
143143
impl From<String> for JobStatus {
144144
fn from(value: String) -> Self {
145-
match value.as_str() {
145+
match value.split_whitespace().next().unwrap() {
146146
"RUNNING" => JobStatus::Running,
147147
"FAILED" => JobStatus::Failed,
148148
"COMPLETED" => JobStatus::Finished,

0 commit comments

Comments
 (0)