Package for running jobs on Sun Grid Engine (SGE) / PBS / Slurm clusters.
Project description
# Job Submitter
[![conda](https://img.shields.io/conda/dn/ostrokach/jobsubmitter.svg)](https://anaconda.org/ostrokach/jobsubmitter/)
[![docs](https://img.shields.io/badge/docs-v0.1.0-blue.svg)](https://ostrokach.gitlab.io/jobsubmitter/)
[![build status](https://gitlab.com/ostrokach/jobsubmitter/badges/master/build.svg)](https://gitlab.com/ostrokach/jobsubmitter/commits/master/)
[![coverage report](https://gitlab.com/ostrokach/jobsubmitter/badges/master/coverage.svg)](https://gitlab.com/ostrokach/jobsubmitter/commits/master/)
Package for running jobs on Sun Grid Engine (SGE) / PBS / Slurm clusters.
## Goals
- Provide an easy way to submit batch jobs from within a Jupyter notebook running on one of the nodes in the cluster.
## Example
```python
from jobsubmitter import JobOpts, JobSubmitter
JOB_ID = 'job_0'
ENV = {
'PATH': '/home/kimlab1/strokach/anaconda/bin:/usr/local/bin:/usr/bin:/bin',
'OMP_NUM_THREADS': '1',
}
jo = jobsubmitter.JobOpts(
job_id=JOB_ID,
working_dir=Path.cwd(),
nproc=1,
queue='medium',
walltime='24:00:00',
mem='16G',
env=ENV,
)
js = jobsubmitter.JobSubmitter('localhost')
futures = js.submit(system_commands, jo, deplay=0.1)
```
## Contributing
- Make sure all tests pass before merging into master.
- Follow the PEP8 / PyFlake / Flake8 / etc. guidelines.
- Add tests for new code.
- Try to document things.
- Break any / all of the above if you have a good reason.
# History
## 0.0.2 (2018-02-21)
* First release on PyPI.
[![conda](https://img.shields.io/conda/dn/ostrokach/jobsubmitter.svg)](https://anaconda.org/ostrokach/jobsubmitter/)
[![docs](https://img.shields.io/badge/docs-v0.1.0-blue.svg)](https://ostrokach.gitlab.io/jobsubmitter/)
[![build status](https://gitlab.com/ostrokach/jobsubmitter/badges/master/build.svg)](https://gitlab.com/ostrokach/jobsubmitter/commits/master/)
[![coverage report](https://gitlab.com/ostrokach/jobsubmitter/badges/master/coverage.svg)](https://gitlab.com/ostrokach/jobsubmitter/commits/master/)
Package for running jobs on Sun Grid Engine (SGE) / PBS / Slurm clusters.
## Goals
- Provide an easy way to submit batch jobs from within a Jupyter notebook running on one of the nodes in the cluster.
## Example
```python
from jobsubmitter import JobOpts, JobSubmitter
JOB_ID = 'job_0'
ENV = {
'PATH': '/home/kimlab1/strokach/anaconda/bin:/usr/local/bin:/usr/bin:/bin',
'OMP_NUM_THREADS': '1',
}
jo = jobsubmitter.JobOpts(
job_id=JOB_ID,
working_dir=Path.cwd(),
nproc=1,
queue='medium',
walltime='24:00:00',
mem='16G',
env=ENV,
)
js = jobsubmitter.JobSubmitter('localhost')
futures = js.submit(system_commands, jo, deplay=0.1)
```
## Contributing
- Make sure all tests pass before merging into master.
- Follow the PEP8 / PyFlake / Flake8 / etc. guidelines.
- Add tests for new code.
- Try to document things.
- Break any / all of the above if you have a good reason.
# History
## 0.0.2 (2018-02-21)
* First release on PyPI.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file jobsubmitter-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: jobsubmitter-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf347e71c89f80306a90b5e57a66afeeca65d593cd68813355975c1298fa6d64 |
|
MD5 | 66edd9b4b0de75ed15563cd4941705ab |
|
BLAKE2b-256 | dc4133edca7bba722068d9b86735ec4086cbf3b46f281b14aa57dbfae3e23fc9 |