Allow restart of Killed processes

This commit is contained in:
Arne Beer 2020-01-28 21:14:02 +01:00
parent cd982f105c
commit b0f7015b15
4 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
# v0.1.1
- Handle broken UTF8 in `show` with `-f` and `-e` flags.
- Allow restart of `Killed` processes
# v0.1.1
- Replace prettytables-rs with comfy-table

2
Cargo.lock generated
View file

@ -773,7 +773,7 @@ dependencies = [
[[package]]
name = "pueue"
version = "0.1.1"
version = "0.1.2"
dependencies = [
"anyhow 1.0.26 (registry+https://github.com/rust-lang/crates.io-index)",
"async-std 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",

View file

@ -1,7 +1,7 @@
[package]
name = "pueue"
description = "A cli tool for managing long running shell commands."
version = "0.1.1"
version = "0.1.2"
authors = ["Arne Beer <contact@arne.beer>"]
homepage = "https://github.com/nukesor/pueue"
repository = "https://github.com/nukesor/pueue"

View file

@ -161,7 +161,7 @@ fn restart(message: RestartMessage, sender: &Sender<Message>, state: &SharedStat
let response: String;
let new_ids = {
let mut state = state.lock().unwrap();
let statuses = vec![TaskStatus::Done, TaskStatus::Failed];
let statuses = vec![TaskStatus::Done, TaskStatus::Failed, TaskStatus::Killed];
let (matching, mismatching) = state.tasks_in_statuses(Some(message.task_ids), statuses);
let mut new_ids = Vec::new();