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 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.9.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.9.1
File Size Uploaded Provenance Actions
hexaqueue_worker-0.9.1.tar.gz 41.8 kB Without provenance Details for hexaqueue_worker-0.9.1.tar.gz

Built distribution (wheel)

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

Total release size: 99.5 kB

Release files / hexaqueue_worker-0.9.1.tar.gz

Download URL hexaqueue_worker-0.9.1.tar.gz
Size 41.8 kB
Tags Source
SHA-256 checksum
How to use checksums
26093fb4addd36bdd101c6a8d2f5320149e982059c454e33711f39d0d6c3c4fd
BLAKE2b-256 checksum
How to use checksums
77e08d1ac06e06e5db346679b80dbf0cf0c76c50b7e72d3a6d19b58c1d1c0e9f
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.9.1-py3-none-any.whl

Download URL hexaqueue_worker-0.9.1-py3-none-any.whl
Size 57.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
751783edf0d4ddb4c48de9629589f6e341709451a17f7ae04f608bcd6ebd5674
BLAKE2b-256 checksum
How to use checksums
54d0166d14b9df589e9c19325d03e02a8b80817b62ff5cdabf103162ad229ebe
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.9.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