A python package for working with the Portable Batch System (PBS) job scheduler.
Project description
pbspy
A python package for working with the Portable Batch System (PBS) job scheduler.
See the documentation for more information.
Example
from pbspy import Job, JobDescription
# Run a job with some explicit parameters
job_a = (
JobDescription(name="job_a", ncpus=4, mem="192GB", walltime="00:05:00")
.add_command(["echo", "A"])
.submit()
)
# Submit another job that waits for job_a to finish
job_b = (
JobDescription(name="job_b", ncpus=1, walltime="00:05:00", afterok=[job_a])
.add_command(["echo", "B"])
.submit()
)
# Get the result of the jobs
# result_a = job_a.result() # wait for job_a to finish and get result
(result_a, result_b) = Job.result_all(
[job_a, job_b]
) # wait for job_a and job_b to finish and get results
print("job_a:", result_a.output.strip())
print("job_b:", result_b.output.strip())
Output (partially executed):
✓ 124397435.gadi-pbs job_a
⠼ 0:01:15 124397436.gadi-pbs job_b
Output (completed):
✓ 124397435.gadi-pbs job_a
✓ 124397436.gadi-pbs job_b
job_a: A
job_b: B
Licence
pbspy
is licensed under the MIT License LICENSE or http://opensource.org/licenses/MIT.
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
pbspy-0.0.3.tar.gz
(11.2 kB
view details)
Built Distribution
pbspy-0.0.3-py3-none-any.whl
(7.0 kB
view details)
File details
Details for the file pbspy-0.0.3.tar.gz
.
File metadata
- Download URL: pbspy-0.0.3.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 964c307f9f14b8a30aec5dd5bd6c260d17c95c1c8bf7ccc6c033fe7efb245131 |
|
MD5 | 094422df013971fc923717c131c685f0 |
|
BLAKE2b-256 | e24735e4426f9f6b1c3c13d2abb02eeeb1de1ffe52cd87a0da228c087c3f2852 |
File details
Details for the file pbspy-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: pbspy-0.0.3-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ca648814fe590a851af6abdc23ae78b8b349d899c7b8a40cf688ce00d5afa93 |
|
MD5 | 100c0ea7162f39f5d4890faad2720249 |
|
BLAKE2b-256 | 4f88d565660779830811d8c329eafeece7e616cace98765435fbfe09985e0661 |