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.11.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.11.0
File Size Uploaded Provenance Actions
hexaqueue_worker-0.11.0.tar.gz 42.2 kB Without provenance Details for hexaqueue_worker-0.11.0.tar.gz

Built distribution (wheel)

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

Total release size: 100.3 kB

Release files / hexaqueue_worker-0.11.0.tar.gz

Download URL hexaqueue_worker-0.11.0.tar.gz
Size 42.2 kB
Tags Source
SHA-256 checksum
How to use checksums
65ba991c143cfcef782db7451c3ab884c70e2a165e6b75d131b0ad79ff1901e2
BLAKE2b-256 checksum
How to use checksums
96583e0073fd72995a3dbd0f636551012e117d7bcd3a72439d136fee12dbca0c
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.11.0-py3-none-any.whl

Download URL hexaqueue_worker-0.11.0-py3-none-any.whl
Size 58.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de3f1471b9c16a868e46559b0b4a8d3c5c188be40ea24f025d84401cb0a73ace
BLAKE2b-256 checksum
How to use checksums
11754bcc79b094c1aba49c54f7ff600fdb538b5f54f4037b63378bfdfb9bc654
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.11.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