<aside> 🪄
Pixi Advent Calendar 2025 9日目の記事です。
</aside>
pueue は、並列ジョブをバックグラウンドで管理するRust製の task manager で,例えば以下のような用途に最適です.単一のバイナリで大体どこでも動作します.
<aside> 🚀
rsync | rclone<aside> ⚠️
Pueueはローカルマシンなど小規模な用途を前提として設計されています. 大規模クラスタ等では備え付けのjob schedulerを使いましょう https://github.com/Nukesor/pueue?tab=readme-ov-file#what-pueue-is-not
</aside>
OS間で install 方法を統一したいので cargo か pixi で install します.
pixi global install pueue
pueued -d
pueue parallel 2
pueue add -- <command>
pueue add -- python train.py
なんか適当な download タスクを積んでみましょう. ダウンロードスクリプト download.sh で各コマンド接頭に pueue add —
を付けるだけなので一瞬です.
./download.sh
New task added (id 0).
New task added (id 1).
New task added (id 2).
New task added (id 3).
New task added (id 4).
New task added (id 5).
New task added (id 6).
New task added (id 7).
New task added (id 8).
New task added (id 9).
New task added (id 10).
New task added (id 11).
New task added (id 12).
New task added (id 13).
New task added (id 14).
pueue