Tq -- Command Line Scheduler
===
```
Usage: tq {COMMAND | -- TASK}
-> show usage, and tqd status
start -> start daemon
stop -> stop daemon
log -> dump daemon log to screen
ls -> fancy print of task queue
db -> print database content to screen
rm ID -> remove task with specified id, see ID with tq ls
clean -> remove log file, clean task queue
purge -> remove log file and sqlite3 db file
-- TASK -> assign TASK (a command line)
P R -- TASK -> create TASK with priority P and resource req R
int P range [INT_MIN, INT_MAX], higher = more important
P is used to tell important tasks
int R range [0, 10], estimated resource occupation
R is used for parallel execution
Tq functionality and feature:
1. run command one by one in serial
2. run command in parallel by setting resource parameter
3. task priority is supported
Example:
1. run two tasks in serial
tq -- sleep 10
tq -- sleep 10
2. run three tasks in parallel, each of then takes 40% of resource
tq 0 4 -- sleep 10
tq 0 4 -- sleep 10
tq 0 4 -- sleep 10
3. add a high priority task, which should run ASAP
tq 1 10 -- sleep 10
4. add a high priority task and run it right away
tq 1 0 -- sleep 10
5. add a task with even higher priority
tq 999 10 -- sleep 10
tq version: 0.2
```
===
```
Usage: tq {COMMAND | -- TASK}
-> show usage, and tqd status
start -> start daemon
stop -> stop daemon
log -> dump daemon log to screen
ls -> fancy print of task queue
db -> print database content to screen
rm ID -> remove task with specified id, see ID with tq ls
clean -> remove log file, clean task queue
purge -> remove log file and sqlite3 db file
-- TASK -> assign TASK (a command line)
P R -- TASK -> create TASK with priority P and resource req R
int P range [INT_MIN, INT_MAX], higher = more important
P is used to tell important tasks
int R range [0, 10], estimated resource occupation
R is used for parallel execution
Tq functionality and feature:
1. run command one by one in serial
2. run command in parallel by setting resource parameter
3. task priority is supported
Example:
1. run two tasks in serial
tq -- sleep 10
tq -- sleep 10
2. run three tasks in parallel, each of then takes 40% of resource
tq 0 4 -- sleep 10
tq 0 4 -- sleep 10
tq 0 4 -- sleep 10
3. add a high priority task, which should run ASAP
tq 1 10 -- sleep 10
4. add a high priority task and run it right away
tq 1 0 -- sleep 10
5. add a task with even higher priority
tq 999 10 -- sleep 10
tq version: 0.2
```
Metadata
Release files for tq1 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tq1-0.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Release files / tq1-0.3-py2.py3-none-any.whl
| Download URL | tq1-0.3-py2.py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
25e4b5f93d547cd18d76332b0cbf04d5e63c7e096188d796ca8197239e101697
|
|
BLAKE2b-256 checksum How to use checksums |
cd26c56b44a339ebb7c8e06944a6aa9d88c9f3e4e3570107a2f51bd4ca8fd194
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |