Skip to main content

haps-plugin-scheduler-client

The user's half of the HAPS scheduler plugin. Submit a job to an application that runs on an HPC centre, follow it, and collect its output — without an account on that centre.

pip install haps-plugin-scheduler-client

Submit

from haps_client import HapsClient
from haps_plugin_scheduler_client import SchedulerClient

api = HapsClient(username=..., password=..., ebservice_url=..., ebuffer_url=...)

sched = SchedulerClient(api, ms_uuid)      # refused if the application is not made for this plugin
sched.mservice_summary()                   # what it expects, in order

sched.submit_job(
    [],                                    # arguments
    ebin=[tpr.uuid],                       # input buffers, created and filled by you
    ebout=[b.uuid for b in outputs],       # output buffers, matched by position
)
print(sched.job_uuid)                      # the one thing to write down

Add dry_run=True to have Slurm check the job without running it: nothing is queued, no hours are spent.

Follow

sched.monitor()          # prints each change until the job is over
sched.job_summary()      # a snapshot: statuses, Slurm job id, elapsed time

Two statuses side by side, HAPS's and Slurm's:

PROCESSING (PENDING)     waiting in the Slurm queue
PROCESSING (RUNNING)     running on the centre
COMPLETED  (COMPLETED)   done
FAILED     (TIMEOUT)     the walltime was exceeded

Closed your laptop? The job carries on. Pick it back up anywhere:

sched = SchedulerClient.attach(api, job_uuid)
SchedulerClient.list(api)       # every job you submitted through the plugin

Collect

sched.download_data("./results")        # the output buffers: what the calculation made
sched.download_slurm_trace("./trace")   # what it printed on the centre, stdout and stderr

The trace is the first place to look when a job ends in FAILED. It is kept for a limited time only.

Cancel

sched.cancel_job()

The Slurm job is stopped within a minute.

Metadata

Release files for haps-plugin-scheduler-client 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for haps-plugin-scheduler-client 0.4.1
File Size Uploaded Provenance Actions
haps_plugin_scheduler_client-0.4.1.tar.gz 8.3 kB Without provenance Details for haps_plugin_scheduler_client-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for haps-plugin-scheduler-client 0.4.1
File Interpreter ABI Platform Actions
haps_plugin_scheduler_client-0.4.1-py3-none-any.whl Python 3 none any Details for haps_plugin_scheduler_client-0.4.1-py3-none-any.whl

Total release size: 17.4 kB

Release files / haps_plugin_scheduler_client-0.4.1.tar.gz

Download URL haps_plugin_scheduler_client-0.4.1.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6ce2400187dbf1844e8c223f121fb8a2a5d8faddfa5a4d683a5b0749269b5410
BLAKE2b-256 checksum
How to use checksums
3e65a3b97ed7e9cd8cb0fb8c45fdf4c982a608fbb165b757dabfa14e955f7d1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / haps_plugin_scheduler_client-0.4.1-py3-none-any.whl

Download URL haps_plugin_scheduler_client-0.4.1-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
137667b9e3c181f0c893ead29e1b31c64ce0ab0706f817161f1435ca899f557b
BLAKE2b-256 checksum
How to use checksums
dc5a56a4b2de73af1edddaa9ee4efcf0e5877105efae34d84c8b05d11a7eab5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for haps-plugin-scheduler-client 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page