jobcontrol

Job scheduling and tracking library


License
Apache-2.0
Install
pip install jobcontrol==0.1a

Documentation

Job Control

https://raw.githubusercontent.com/rshk/jobcontrol/develop/.misc/banner.png

Job scheduling and tracking library.

Provides a base interface for scheduling, running, tracking and retrieving results for "jobs".

Each job definition is simply any Python callable, along with arguments to be passed to it.

The tracking include storing: - the function return value - any exception raised - log messages produced during task execution - optionally a "progress", if the task supports it

The status storage is completely decoupled from the main application.

The project "core" currently includes two storage implementations:

  • MemoryStorage -- keeps all data in memory, useful for development / testing.
  • PostgreSQLStorage -- keeps all data in a PostgreSQL database, meant for production use.

Project status

Travis CI build status

Branch Status
master https://travis-ci.org/rshk/jobcontrol.svg?branch=master
develop https://travis-ci.org/rshk/jobcontrol.svg?branch=develop

Source code

Source is hosted on GitHub: https://github.com/rshk/jobcontrol/

And can be cloned with:

git clone https://github.com/rshk/jobcontrol.git

Python Package Index

The project can be found on PyPI here: https://pypi.python.org/pypi/jobcontrol

Latest PyPI version Number of PyPI downloads Supported Python versions Development Status License

Project documentation

Documentation is hosted on GitHub pages:

http://rshk.github.io/jobcontrol/docs/

A mirror copy is hosted on ReadTheDocs (compiled automatically from the Git repository; uses RTD theme; supports multiple versions):

http://jobcontrol.rtfd.org/

Concepts

Jobs are simple definitions of tasks to be executed, in terms of a Python function, with arguments and keywords.

They also allow defining dependencies (and seamingless passing of return values from dependencies as call arguments), cleanup functions, and other nice stuff.

The library itself is responsible of keeping track of job execution ("build") status: start/end times, return value, whether it raised an exception, all the log messages produced during execution, the progress report of the execution, ...

It also features a web UI (and web APIs are planned) to have an overview of the builds status / launch new builds / ...