mirror of
https://github.com/nukesor/pueue
synced 2024-07-21 02:04:22 +00:00
Merge branch 'master' into windows
This commit is contained in:
commit
2e68bd028f
|
@ -17,8 +17,6 @@ On top of that, there are a lot of convenient features and abstractions.
|
|||
Since Pueue is not bound to any terminal, you can control your tasks from any terminal on the same machine.
|
||||
The queue will be continuously processed, even if you no longer have any active ssh sessions.
|
||||
|
||||
**Announcement:** v0.10.0 changed and broke a lot of things. Please check the release [Changelog](https://github.com/Nukesor/pueue/blob/master/CHANGELOG.md).
|
||||
|
||||
- [Features](https://github.com/Nukesor/pueue#features)
|
||||
- [Why should I use it](https://github.com/Nukesor/pueue#why-should-i-use-it)
|
||||
- [Installation](https://github.com/Nukesor/pueue#installation)
|
||||
|
|
|
@ -319,7 +319,7 @@ pub enum SubCommand {
|
|||
quiet: bool,
|
||||
},
|
||||
|
||||
/// Remove all finished tasks from the list (also clears logs).
|
||||
/// Remove all finished tasks from the list.
|
||||
Clean {
|
||||
/// Only clean tasks that finished successfully.
|
||||
#[clap(short, long)]
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
use pueue_lib::log::clean_log_handles;
|
||||
use pueue_lib::network::message::*;
|
||||
use pueue_lib::state::SharedState;
|
||||
use pueue_lib::task::TaskStatus;
|
||||
|
@ -28,6 +29,8 @@ pub fn remove(task_ids: Vec<usize>, state: &SharedState) -> Message {
|
|||
|
||||
for task_id in ¬_running {
|
||||
state.tasks.remove(task_id);
|
||||
|
||||
clean_log_handles(*task_id, &state.settings.shared.pueue_directory);
|
||||
}
|
||||
|
||||
let text = "Tasks removed from list";
|
||||
|
|
Loading…
Reference in a new issue