Multi-scheduler job dispatcher


License
LGPL-3.0
Install
pip install chore==0.8.16

Documentation

Python Chore

Description

The Chore dispatcher is a multi-job scheduler module for sending jobs to different systems. It was developed to help manage bioinformatics jobs in a django website environment. But should equally work well outside of django.

How to Use the Module

A simple example:

from chore.shell import JobManager

manager = JobManager('/tmp/stash_dir', batch=False)
manager.submit('job_1', 'wait 10')

A slurm example:

from chore.slurm import JobManager

manager = JobManager('/tmp/stash_dir', batch=True)
manager.submit('job_1', 'wait 10', provide='job_2')
manager.submit('job_2', 'wait 20', depend='job_1')