Python Job Runner
- Guides
- Why mrjob?
- Fundamentals
- Concepts
- Writing jobs
- Runners
- Spark
- Config file format and location
- Options available to all runners
- Hadoop-related options
- Configuration quick reference
- Cloud runner options
- Job Environment Setup Cookbook
- Hadoop Cookbook
- Testing jobs
- Cloud Dataproc
- Elastic MapReduce
- Python 2 vs. Python 3
- Contributing to mrjob
- Reference
- mrjob.cmd: The
mrjob
command-line utility - mrjob.conf - parse and write config files
- mrjob.dataproc - run on Dataproc
- mrjob.emr - run on EMR
- mrjob.hadoop - run on your Hadoop cluster
- mrjob.job - defining your job
- mrjob.protocol - input and output
- mrjob.spark.runner - run on any Spark cluster
- mrjob.runner - base class for all runners
- mrjob.step - represent Job Steps
- mrjob.cmd: The
- What’s New
- 0.7.4
- 0.7.1
- 0.7.0
- 0.6.8
- 0.6.3
- 0.6.0
- 0.5.7
- 0.5.4
- 0.5.0
- 0.3
- Setting the slice to a python date object: job.setall(time(10, 2)) job.setall(date(2000, 4, 2)) job.setall(datetime(2000, 4, 2, 10, 2)) Run a jobs command. Running the job here will not effect it’s existing schedule with another crontab process: jobstandardoutput = job.run Creating a job with a comment.
- Here is an example slurm script that loads anaconda3 module and runs hello world python script. Note: to use the scheduler, you prepend python hello.py with srun command. Save this slurm script to hello.slurm. Then run it by submitting the job to the slurm scheduler with: We will take this slurm job script and modify it to run as a job array.
- Advanced Python Scheduler (APScheduler) is a Python library that lets you schedule your Python code to be executed later, either just once or periodically. You can add new jobs or remove old ones on the fly as you please. If you store your jobs in a database, they will also survive scheduler restarts and maintain their state.
Mrjob lets you write MapReduce jobs in Python 2.7/3.4+ and run them on several platforms. You can: Write multi-step MapReduce jobs in pure Python. Test on your local machine. Run on a Hadoop cluster. Run in the cloud using Amazon Elastic MapReduce (EMR) Run in the cloud using Google Cloud Dataproc (Dataproc).
Released:
An abstraction layer to run jobs on HPC clusters using Grid Engine, Torque, or locally.
Project description
An abstraction layer to run jobs on HPC clusters using Grid Engine, SLURM, Torque, or locally.
The jobrunner package was developed by the United States Foodand Drug Administration, Center for Food Safety and Applied Nutrition.
- Free software
- Documentation: https://jobrunner.readthedocs.io
- Source Code: https://github.com/CFSAN-Biostatistics/jobrunner
- PyPI Distribution: https://pypi.python.org/pypi/jobrunner
Features

- Python API for job submission
- Consistent interface to run jobs on Grid Engine, SLURM, Torque, or locally
- Dependencies between jobs
- Array jobs and normal non-array jobs
- Array job parameter substitution
- Array job slot-dependency
- Limit the CPU resources consumed by array jobs
- Separate log files for each array job task

Citing jobrunner
To cite jobrunner, please reference the jobrunner GitHub repository:
https://github.com/CFSAN-Biostatistics/jobrunner
License
See the LICENSE file included in the jobrunner distribution.
1.4.0 (2020-08-21)
- Add support for wall clock time limits.
1.3.1 (2020-08-12)
- Allow array tasks in local mode to process only a portion of the lines in the array fileby setting num_tasks to a value less than the number of lines in the array file.
1.3.0 (2020-04-12)
- Add support for the SLURM job scheduler.
- Add capability to request exclusive access to compute nodes when running on SLURM.
1.2.0 (2019-10-11)
- Add the capability to run in quiet mode when running locally on a workstationso the job stdout and stderr are written to log files only.
1.1.0 (2019-06-07)
Python Job Runner Download
- HPC array job command lines are quoted and executed in a subshell by default with better support for complex command lines.
Project details
Release historyRelease notifications RSS feed
Python Job Runner Tutorial
1.4.0
1.3.1
1.3.0
1.2.0
Python Job Runner
1.1.0
1.0.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size jobrunner-1.4.0.tar.gz (19.5 kB) | File type Source | Python version None | Upload date | Hashes |
Hashes for jobrunner-1.4.0.tar.gz
Algorithm | Hash digest |
---|---|
SHA256 | c6ca4204aff52c4101d569c568280361344ce15c650f6e88f791dd7784235775 |
MD5 | 15d54bf4d673b85b7112f58b8fabbfbd |
BLAKE2-256 | ac6f04a1d85d0237b8d554c5417facdbe3ae5108b0fc44a77cb858d0942d1417 |