Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

For parsing running SGE jobs

Project description

Simple python module for parsing the output of SGE qstat. There is only one top level function: get_jobs which returns a list of dictionaries of currently queued (running or waiting) jobs.

Requirements

The only requirements are Python version 2.7+ or 3.3+. All code uses the standard library. The binary qstat must be available and in your $PATH.

Example

>>> from sgeparse import get_jobs
>>> jobs = get_jobs()
>>> # => {"name": "jobname", "owner": "me", ... }

The user argument can be used to specify which user to query:

>>> from sgeparse import get_jobs
>>> jobs = get_jobs(user='nobody')
>>> # => {"name": "jobname", "owner": "nobody", ... }

Available keys

  • job_number
  • priority
  • name
  • owner
  • state
  • start_time
  • queue
  • host
  • slots

Project details


Download files

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

Files for sgeparse, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size sgeparse-0.0.2-py2.py3-none-any.whl (4.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size sgeparse-0.0.2.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page