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.5.0

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.5.0
File Size Uploaded Provenance Actions
haps_plugin_scheduler_client-0.5.0.tar.gz 8.3 kB Without provenance Details for haps_plugin_scheduler_client-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 17.4 kB

Release files / haps_plugin_scheduler_client-0.5.0.tar.gz

Download URL haps_plugin_scheduler_client-0.5.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
dc4fcbe7f62a0d0061124986704ed7ccfc77f650c36f06d154ae9f4cb9a72f3d
BLAKE2b-256 checksum
How to use checksums
fc6f41355a9ded27ab27a8bb925e23240f32ac3e05f42534cb2ae0ceca1802f4
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.5.0-py3-none-any.whl

Download URL haps_plugin_scheduler_client-0.5.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bccb783ca713f0c15628cefd9ffdca98bffbaed38736e76fa2a5b60eb3f480f2
BLAKE2b-256 checksum
How to use checksums
c7acd71ce2241c9b0981d869d60c0d06cf2bd98207f808605995291b48055f11
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.5.0

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