A Friendly Task Scheduler Frontend
Project description
A Friendly Task Scheduler Frontend
Introduction
Installation
pip install tsq
Cutting edge version from the repository:
pip install git+https://github.com/admk/tsq.git
Usage
Here’s an instruction on how to use tq
, the front-end CLI for task-spooler:
Basic Usage
tq [options] [command]
Common Commands:
-
list (
ls
): Shows job information in a compact format. Or simply calltq
without any arguments.tq list
-
ids (
id
): Displays the job IDs.tq ids
-
info: Provides detailed job information.
tq info
-
commands (
cmd
): Shows the commands of all jobs.tq commands
-
outputs (
out
): Displays job outputs.tq outputs
-
add (
a
): Add a new job to the queue.tq add [options] <command>
-G
: Specify the number of GPUs required.-N
: Specify the number of slots required.-u
: Ensure the command is unique.-f
: Add jobs from a file or standard input.
-
wait (
w
): Wait for jobs to finish.tq wait
-
kill (
k
): Kill running jobs.tq kill <job_id>
-
remove (
rm
): Remove jobs from the queue.tq remove <job_id>
-
rerun (
rr
): Rerun a job.
tq rerun <job_id>
- requeue (
rq
): Requeue a job.
tq requeue <job_id>
Additional Options:
-V
: Print version info.-rc
: Use a specific configuration file.-b
: Specify the backend (dummy
,ts
).-g
: Assign a group to a job.
For adding a job with multiple resources:
tq add -G 2 -N 4 "python train_model.py"
For reading jobs from a file:
tq add -f job_list.txt
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tsq-0.0.18.tar.gz
.
File metadata
- Download URL: tsq-0.0.18.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdf2b0e14051c94ccf9df7df0b4253f4b0fbed980fdc36db278b72d3596c5532 |
|
MD5 | e3b2ee1327197ea072a85ec78da48f94 |
|
BLAKE2b-256 | 6afa43fcca9d6945f7c7bf8e65f4abae67f9061b5cf905f814abc6e3203cb2a9 |
File details
Details for the file tsq-0.0.18-py3-none-any.whl
.
File metadata
- Download URL: tsq-0.0.18-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 464df9205547f2b4b3c70c2414e4578d901f0ccef2cb125580de379e24ce025c |
|
MD5 | 3e63efc023a4b2d19f582f2789a896d2 |
|
BLAKE2b-256 | 7694d837493c544d53516e466970c2051c07e4822771b0597e5123539d307c98 |