LinuxCommandLibrary

pueue-stash

Move pueue tasks to stashed state

TLDR

Stash task

$ pueue stash [task_id]
copy
Stash multiple tasks
$ pueue stash [id1] [id2] [id3]
copy
Unstash (enqueue) task
$ pueue enqueue [task_id]
copy
Add task directly to stash
$ pueue add --stashed [command]
copy

SYNOPSIS

pueue stash [taskids_]

DESCRIPTION

pueue stash moves tasks to a stashed state, removing them from the queue. Stashed tasks won't run until explicitly enqueued. Useful for preparing tasks to run later.

PARAMETERS

task_ids

Tasks to stash.

EXAMPLES

$ # Stash task
pueue stash 5

# Stash multiple
pueue stash 1 2 3

# Add as stashed
pueue add --stashed "long-running-command"

# Enqueue when ready
pueue enqueue 5

# View stashed tasks
pueue status
copy

WORKFLOW

$ # Prepare tasks
pueue add --stashed "backup database"
pueue add --stashed "compress logs"
pueue add --stashed "upload files"

# Start when ready
pueue enqueue --all
copy

STASH VS PAUSE

$ Stash  - Remove from queue entirely
Pause  - Stop but keep in queue position
copy

CAVEATS

Stashed tasks don't maintain queue position. Use enqueue to re-add to queue.

HISTORY

pueue stash is part of pueue by Arne Beer for managing task queue states.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community