Skip to main content

🐝 hexaqueue-worker

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

PyPI: hexaqueue-worker Python 3.12+ 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
HEXAQUEUE_CONTROLLER_URL=http://10.0.1.101:8001 uv run python -m hexaqueue_worker.adapters.agent

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 15 seconds (default); backs off gracefully when the queue is drained so the cloud pool can scale down.

Metadata

Release files for hexaqueue-worker 0.12.2

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.2
File Size Uploaded Provenance Actions
hexaqueue_worker-0.12.2.tar.gz 47.4 kB Without provenance Details for hexaqueue_worker-0.12.2.tar.gz

Built distribution (wheel)

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

Total release size: 110.6 kB

Release files / hexaqueue_worker-0.12.2.tar.gz

Download URL hexaqueue_worker-0.12.2.tar.gz
Size 47.4 kB
Tags Source
SHA-256 checksum
How to use checksums
393fcdc8cfe5d288c3c84be145e18aed9437d13d472773b2d00b15f207ef352e
BLAKE2b-256 checksum
How to use checksums
ec1569c508aa279c354ac43e6e170dc957ab025c1e35e3ebb3b2237057b1ad47
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.2-py3-none-any.whl

Download URL hexaqueue_worker-0.12.2-py3-none-any.whl
Size 63.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c5c8f3542b33389ca87a1b77ce15149eb06a1f1fa7e70ea53ac43b5d7cfd587
BLAKE2b-256 checksum
How to use checksums
f8387c869d37e09a9edfb53348a20e4abd10bb3e4f267e5a948eef7b72e426af
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.2

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