Skip to content

Commit

Permalink
Add Killed invocation status to CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed Nov 21, 2024
1 parent efd084b commit d57419d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/src/clients/datafusion_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ pub enum InvocationState {
Running,
Suspended,
BackingOff,
Killed,
Completed,
}

Expand All @@ -142,6 +143,7 @@ impl FromStr for InvocationState {
"suspended" => Self::Suspended,
"backing-off" => Self::BackingOff,
"completed" => Self::Completed,
"killed" => Self::Killed,
_ => Self::Unknown,
})
}
Expand All @@ -157,6 +159,7 @@ impl Display for InvocationState {
InvocationState::Running => write!(f, "running"),
InvocationState::Suspended => write!(f, "suspended"),
InvocationState::BackingOff => write!(f, "backing-off"),
InvocationState::Killed => write!(f, "killed"),
InvocationState::Completed => write!(f, "completed"),
}
}
Expand Down
1 change: 1 addition & 0 deletions cli/src/ui/invocations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ pub fn invocation_status_style(status: InvocationState) -> Style {
InvocationState::Suspended => DStyle::new().dim(),
InvocationState::BackingOff => DStyle::new().red(),
InvocationState::Completed => DStyle::new().blue(),
InvocationState::Killed => DStyle::new().red(),
}
}

Expand Down

0 comments on commit d57419d

Please sign in to comment.