submit jobs to LSF with python
Project description
bsub
====
python wrapper to submit jobs to bsub (and later qsub)
Authors
------
@brentp, @brwnj
Example
-------
```python
>>> sub = bsub("some_job", R="rusage[mem=1]", verbose=True)
# submit a job via call'ing the sub object with the command to run.
# the return value is the numeric job id.
>>> print sub("date").isdigit()
True
# 2nd argument can be a shell script, in which case
# the call() is empty.
#>>> bsub("somejob", "run.sh", verbose=True)()
# dependencies:
>>> job_id = bsub("sleeper", verbose=True)("sleep 2")
>>> bsub.poll(job_id)
True
```
or use the command-line to poll for running jobs:
```Shell
python -m bsub 12345 12346 12347
```
will block until those 3 jobs finish.
====
python wrapper to submit jobs to bsub (and later qsub)
Authors
------
@brentp, @brwnj
Example
-------
```python
>>> sub = bsub("some_job", R="rusage[mem=1]", verbose=True)
# submit a job via call'ing the sub object with the command to run.
# the return value is the numeric job id.
>>> print sub("date").isdigit()
True
# 2nd argument can be a shell script, in which case
# the call() is empty.
#>>> bsub("somejob", "run.sh", verbose=True)()
# dependencies:
>>> job_id = bsub("sleeper", verbose=True)("sleep 2")
>>> bsub.poll(job_id)
True
```
or use the command-line to poll for running jobs:
```Shell
python -m bsub 12345 12346 12347
```
will block until those 3 jobs finish.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bsub-0.0.1.tar.gz
(2.8 kB
view details)
File details
Details for the file bsub-0.0.1.tar.gz.
File metadata
- Download URL: bsub-0.0.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9926fbdbb697b15fc2ac28c27a690a0384b4f595c04da8900b664e1d85a1bdaa
|
|
| MD5 |
2fa6e731d811368beb9f711614f7217e
|
|
| BLAKE2b-256 |
7118b152e5623795095ac6cc390c18a6003a5df3afa1651cbe75337f2cfc2404
|