![Forrest logo](/images/logo.png)
pueue-switch:tldr:c09bc
The command "pueue switch ${task_id1} ${task_id2}" is used to swap the order of two tasks in the Pueue task queue.
Pueue is a task manager for concurrent and sequential execution of shell commands. It allows you to organize and manage tasks in a queue, ensuring that they are executed one after the other or concurrently.
In this command, "${task_id1}" and "${task_id2}" are placeholders for the actual task IDs that you want to switch. Task IDs are unique identifiers assigned to each task in the Pueue queue.
By executing this command, you instruct Pueue to swap the positions of the tasks with task_id1 and task_id2, effectively changing their order in the queue. This can be useful when you want to reorder the execution of tasks based on your requirements or priorities.
For example, let's say your Pueue queue has three tasks with task IDs 1, 2, and 3. If you execute "pueue switch 1 3", it will swap the positions of tasks 1 and 3. So, after running this command, the new order of tasks in the queue will be 3, 2, 1.