Skip to main content

agent-worker

Rust supervisor and embedded CPython 3.12 runtime for registered Python async tasks.

The binary is agent-worker. The importable Python package is simple_q. The Rust module, embedded in the worker and also built as a wheel, is simple_q_runtime.

Install

pip install simple-q-runtime

The wheel ships simple_q and the simple_q_runtime extension for a process that only enqueues work. agent-worker stays a separate binary. A v* tag builds CPython 3.12 wheels for Linux x86_64 and Linux aarch64 and publishes them; the steps are in docs/dev/PUBLISH.md.

Importing simple_q does not open Redis. Call simple_q.configure(redis_url=...) after the process is the one that will send, including after a gunicorn fork. send before that call fails.

Product queues are default and quota. The decision for replacing Dramatiq is recorded in docs/adr/0001-minimal-rust-runtime-instead-of-dramatiq.md.

Metrics keep the Dramatiq names and the accounting of the fixed Prometheus middleware: canonical queue_name, both gauges in livesum, and a retry counted once when it is enqueued with a delay. Redis-scheduled retries are not in-process memory, so they do not move dramatiq_delayed_messages_inprogress. The scrape listens on DRAMATIQ_PROM_HOST:DRAMATIQ_PROM_PORT (default 0.0.0.0:9191) and any path. DRAMATIQ_PROM_DB is the multiprocess directory. The supervisor wipes *.db once; each child writes files under SIMPLE_Q_SLOT.

agent-worker admin listens on 127.0.0.1:8080 and requires BOARD_TOKEN (at least 16 letters or digits), including on loopback. BOARD_INSECURE=1 omits the token only for a loopback address. Open the board once as /?token=...; the token is then kept in an HttpOnly cookie. The compose file publishes that port on the host loopback and still requires BOARD_TOKEN, because the process inside the container listens on the container network.

Redis in compose has no password and is published on 127.0.0.1:6379. Anyone who can reach it can put work on a queue. Set requirepass before sharing that port.

Metadata

Release files for simple-q-runtime 0.1.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 simple-q-runtime 0.1.0
File Size Uploaded Provenance Actions
simple_q_runtime-0.1.0.tar.gz 36.8 kB With provenance Details for simple_q_runtime-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for simple-q-runtime 0.1.0
File Interpreter ABI Platform Actions
simple_q_runtime-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for simple_q_runtime-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
simple_q_runtime-0.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ ARM64 Details for simple_q_runtime-0.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Total release size: 2.4 MB

Release files / simple_q_runtime-0.1.0.tar.gz

Download URL simple_q_runtime-0.1.0.tar.gz
Size 36.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6d00366b0282fa44d6c932c2ad7eee6e8de7898c3577fa2ca47b191e6e003d3b
BLAKE2b-256 checksum
How to use checksums
6fc68cc3cb9f48cd828be4e5d0378f0184fd5ebb48364099414264ccd8acce28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / simple_q_runtime-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL simple_q_runtime-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 1.2 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
068104ead1edd86f51545792ea1b83be6ade39228fdc5506e302285722e99b9f
BLAKE2b-256 checksum
How to use checksums
c3d309c25c83f1eb15ec226dddeb37719f98cf16fadf0a3818fe548b2b78d442
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / simple_q_runtime-0.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL simple_q_runtime-0.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 1.2 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
db113d1e7f65339523bb4dc8fb5b91ddc1b57a92a56c3ded27e5c4895f84fbae
BLAKE2b-256 checksum
How to use checksums
959a22abefd7dcb064edcc43cb0705d5cce4389219696cf37de190d86c3f46d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for simple-q-runtime 0.1.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.

Full provenance

All 3 files in this release have been uploaded with provenance metadata.

Select from 3 files

Attestation for simple_q_runtime-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

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