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.4.tar.gz
(11.3 kB
view details)
Built Distribution
pbspy-0.0.4-py3-none-any.whl
(7.1 kB
view details)
File details
Details for the file pbspy-0.0.4.tar.gz
.
File metadata
- Download URL: pbspy-0.0.4.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 438a1644d188bb12a20f2645252f1eff3aba46db6bd1ca5600aa629d951e07ab |
|
MD5 | 036980fe5cd95c10c480fc85ef805fc8 |
|
BLAKE2b-256 | add639930c00731915311105a6ed5c2fa10c031beb8211be52f2ab5539b2a30f |
File details
Details for the file pbspy-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: pbspy-0.0.4-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0630681806d02bf15e95fb0e49e59b6a7c0b31dcec5c58f0c716b96e792462b |
|
MD5 | 4b9521878da50d2db4a6b05bfa3c3fec |
|
BLAKE2b-256 | 46b52dbc0878f6dfab0a419c8ece1ac93334aca1c315ecb1c2b3d53fb4823d36 |