mirror of
https://github.com/nukesor/pueue
synced 2024-09-06 16:03:26 +00:00
Allow restart of Killed processes
This commit is contained in:
parent
cd982f105c
commit
b0f7015b15
|
@ -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
|
# v0.1.1
|
||||||
|
|
||||||
- Replace prettytables-rs with comfy-table
|
- Replace prettytables-rs with comfy-table
|
||||||
|
|
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -773,7 +773,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pueue"
|
name = "pueue"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow 1.0.26 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"async-std 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "pueue"
|
name = "pueue"
|
||||||
description = "A cli tool for managing long running shell commands."
|
description = "A cli tool for managing long running shell commands."
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
authors = ["Arne Beer <contact@arne.beer>"]
|
authors = ["Arne Beer <contact@arne.beer>"]
|
||||||
homepage = "https://github.com/nukesor/pueue"
|
homepage = "https://github.com/nukesor/pueue"
|
||||||
repository = "https://github.com/nukesor/pueue"
|
repository = "https://github.com/nukesor/pueue"
|
||||||
|
|
|
@ -161,7 +161,7 @@ fn restart(message: RestartMessage, sender: &Sender<Message>, state: &SharedStat
|
||||||
let response: String;
|
let response: String;
|
||||||
let new_ids = {
|
let new_ids = {
|
||||||
let mut state = state.lock().unwrap();
|
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 (matching, mismatching) = state.tasks_in_statuses(Some(message.task_ids), statuses);
|
||||||
|
|
||||||
let mut new_ids = Vec::new();
|
let mut new_ids = Vec::new();
|
||||||
|
|
Loading…
Reference in a new issue