LinuxCommandLibrary

pueue-pause

Pause all running or queued pueue tasks

TLDR

Pause all tasks in the default group

$ pueue pause
copy

Pause a running task
$ pueue pause [task_id]
copy

Pause a running task and stop all its direct children
$ pueue pause --children [task_id]
copy

Pause all tasks in a group and prevent it from starting new tasks
$ pueue pause [[-g|--group]] [group_name]
copy

Pause all tasks and prevent all groups from starting new tasks
$ pueue pause [[-a|--all]]
copy

SYNOPSIS

pueue pause

DESCRIPTION

The `pueue-pause` command halts the execution of tasks managed by the pueue daemon. It suspends the scheduler, preventing new tasks from being started and pausing currently running tasks. This command is useful for maintenance, debugging, or temporarily stopping the task queue. Once paused, the daemon will remain idle until explicitly resumed with the `pueue-start` command. Important: Pausing does not terminate existing tasks; it only suspends their execution. When the daemon is restarted, tasks will continue from where they left off, if they were interruptible. If any tasks are running in background mode, they will be paused but will continue running until their next interaction with the daemon is necessary. When `pueue-start` is called, those tasks will be caught by the pueue daemon again. Pausing the daemon provides a controlled way to temporarily prevent further workload execution without losing the state of queued or running jobs.

STATE TRANSITION

When `pueue-pause` is executed, the pueue daemon transitions to a paused state. This state persists until `pueue-start` is invoked, at which point the daemon resumes its normal operation.

SEE ALSO

Copied to clipboard