Skip to main content

🐝 hexaqueue-worker

Lightweight compute node execution daemon with GPU isolation and real-time streaming.

PyPI: hexaqueue-worker Python 3.13+ Coverage Part of Hexaqueue Built with Hexastack Governed by Hexaqual Tested on Hexaqueue License: Apache 2.0

Part of the Hexaqueue Scheduler · Built on Hexastack · Governed by Hexaqual.


🏗️ Architecture & Dependencies

graph TD
    subgraph S1["hexaqueue-worker"]
        AGENT["WorkerAgent (Autonomous Pull-Based Lease Poller & Runner)"]
        RUNNER["Execution Runtimes (cgroups v2, Docker/Podman, Apptainer)"]
        GPU["GPU Masking (NVML & CUDA_VISIBLE_DEVICES)"]
        STREAM["Log & Telemetry gRPC Streaming"]
    end

    subgraph S2["Internal & Hexastack Dependencies"]
        HQ_CORE["hexaqueue-core (Lease Models & Storage Ports)"]
        HS_AUTH["hexastack-auth (SPIFFE mTLS)"]
        HS_CORE["hexastack-core"]
        HS_GRPC["hexastack-grpc (Bidirectional Streams)"]
        HS_LOG["hexastack-logging (structlog)"]
    end

    S1 --> HQ_CORE
    S1 --> HS_AUTH
    S1 --> HS_CORE
    S1 --> HS_GRPC
    S1 --> HS_LOG

🏃 Autonomous Pull-Based Worker Agent

In elastic cloud environments (e.g. OCI scale-to-zero instance pools under private subnets), worker nodes run the autonomous WorkerAgent:

# Start autonomous worker agent connecting to controller
hq-worker-agent --controller-url http://10.0.1.101:8001

Agent Lifecycle

  1. Dynamic Registration: On boot, registers hardware footprint (vCPUs, RAM, architecture) with the controller at POST /worker/register.
  2. Lease Polling: Actively requests work slices via POST /worker/{id}/lease.
  3. Collateral Ingestion: Fetches and unpacks content-addressed workspace bundles (via local cache or signed OCI Object Storage PAR URLs).
  4. Isolated Virtualenv Execution: Spawns test runners with isolated environments (VIRTUAL_ENV, PATH).
  5. Outcome Reporting: Posts exit codes, JUnit reports, and coverage back via POST /worker/{id}/report.
  6. Heartbeat & Self-Healing: Transmits heartbeats every 10 seconds; backs off gracefully when the queue is drained so the cloud pool can scale down.

Metadata

Release files for hexaqueue-worker 0.12.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 hexaqueue-worker 0.12.1
File Size Uploaded Provenance Actions
hexaqueue_worker-0.12.1.tar.gz 46.4 kB Without provenance Details for hexaqueue_worker-0.12.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hexaqueue-worker 0.12.1
File Interpreter ABI Platform Actions
hexaqueue_worker-0.12.1-py3-none-any.whl Python 3 none any Details for hexaqueue_worker-0.12.1-py3-none-any.whl

Total release size: 108.5 kB

Release files / hexaqueue_worker-0.12.1.tar.gz

Download URL hexaqueue_worker-0.12.1.tar.gz
Size 46.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ff713d5749c1fae219b3671b2f1d0b10ed2d0fea6b788b4cc262b169a2dd8c53
BLAKE2b-256 checksum
How to use checksums
1164075150988f2936f5655e79bf18b5b323b8ced73ea29be2426cb03bc308d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / hexaqueue_worker-0.12.1-py3-none-any.whl

Download URL hexaqueue_worker-0.12.1-py3-none-any.whl
Size 62.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
974f684f732de8438216444ba1ac8222eab1527e63cb99d0fa54ba2f71296a52
BLAKE2b-256 checksum
How to use checksums
cf5665c2f1e16ca12d5c3fd7453581bd0a42363ec3c581ae19917fc36e2b052c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for hexaqueue-worker 0.12.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