Skip to main content

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:

  1. list (ls): Shows job information in a compact format. Or simply call tq without any arguments.

    tq list
    
  2. ids (id): Displays the job IDs.

    tq ids
    
  3. info: Provides detailed job information.

    tq info
    
  4. commands (cmd): Shows the commands of all jobs.

    tq commands
    
  5. outputs (out): Displays job outputs.

    tq outputs
    
  6. 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.
  7. wait (w): Wait for jobs to finish.

    tq wait
    
  8. kill (k): Kill running jobs.

    tq kill <job_id>
    
  9. remove (rm): Remove jobs from the queue.

    tq remove <job_id>
    
  10. rerun (rr): Rerun a job.

tq rerun <job_id>
  1. 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


Download files

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

Source Distribution

tsq-0.0.18.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

tsq-0.0.18-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

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

Hashes for tsq-0.0.18.tar.gz
Algorithm Hash digest
SHA256 cdf2b0e14051c94ccf9df7df0b4253f4b0fbed980fdc36db278b72d3596c5532
MD5 e3b2ee1327197ea072a85ec78da48f94
BLAKE2b-256 6afa43fcca9d6945f7c7bf8e65f4abae67f9061b5cf905f814abc6e3203cb2a9

See more details on using hashes here.

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

Hashes for tsq-0.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 464df9205547f2b4b3c70c2414e4578d901f0ccef2cb125580de379e24ce025c
MD5 3e63efc023a4b2d19f582f2789a896d2
BLAKE2b-256 7694d837493c544d53516e466970c2051c07e4822771b0597e5123539d307c98

See more details on using hashes here.

Supported by

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