LinuxCommandLibrary

pueue-kill

TLDR

Kill specific task

$ pueue kill [task_id]
copy
Kill all running tasks
$ pueue kill --all
copy
Kill tasks in group
$ pueue kill --group [group_name]
copy
Send specific signal
$ pueue kill --signal [SIGTERM] [task_id]
copy

SYNOPSIS

pueue kill [options] [taskids_]

DESCRIPTION

pueue kill sends signals to running tasks in the pueue task queue. By default, it sends SIGKILL to terminate tasks immediately.

PARAMETERS

--all, -a

Kill all tasks.
--group, -g name
Target specific group.
--signal, -s signal
Signal to send.
--children, -c
Kill children processes.

EXAMPLES

$ # Kill task by ID
pueue kill 5

# Kill all running tasks
pueue kill --all

# Kill group
pueue kill --group compilation

# Send SIGTERM instead
pueue kill --signal SIGTERM 3

# Kill with children
pueue kill --children 7

# Multiple tasks
pueue kill 1 2 3
copy

SIGNALS

$ SIGTERM (15) - Graceful termination
SIGKILL (9)  - Force kill (default)
SIGINT (2)   - Interrupt
SIGSTOP (19) - Stop process
copy

CAVEATS

SIGKILL cannot be caught. Use SIGTERM for graceful shutdown. Part of pueue task manager.

HISTORY

pueue kill is part of pueue, a command-line task manager by Arne Beer for managing long-running tasks.

SEE ALSO

Copied to clipboard