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.10.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 hexaqueue-worker 0.10.0
File Size Uploaded Provenance Actions
hexaqueue_worker-0.10.0.tar.gz 42.2 kB Without provenance Details for hexaqueue_worker-0.10.0.tar.gz

Built distribution (wheel)

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

Total release size: 100.3 kB

Release files / hexaqueue_worker-0.10.0.tar.gz

Download URL hexaqueue_worker-0.10.0.tar.gz
Size 42.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e97d5603b2249d2cf5fd9a8d238356885eba54c0a421717271c5bc00754b4185
BLAKE2b-256 checksum
How to use checksums
aeecd0cafc9960468ef085e2f9177326a54a865074ac5f1b96b9440fccdf01cb
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.10.0-py3-none-any.whl

Download URL hexaqueue_worker-0.10.0-py3-none-any.whl
Size 58.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f3b6864b91cad2f2099621a9a15d35df9d0e664e483195e6e3368621320655a
BLAKE2b-256 checksum
How to use checksums
7e6c57018262b7ebfa585e7a05b5d5f3dcef2d7ce565051d04fbb3f6ce0bf701
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.10.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