Skip to main content

Simple Command Line Job Manager

Project description

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
```


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

tq1-0.3-py2.py3-none-any.whl (8.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file tq1-0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: tq1-0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tq1-0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 25e4b5f93d547cd18d76332b0cbf04d5e63c7e096188d796ca8197239e101697
MD5 5236eb49ae4cef2333554039c4520c97
BLAKE2b-256 cd26c56b44a339ebb7c8e06944a6aa9d88c9f3e4e3570107a2f51bd4ca8fd194

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page