Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

stablemates-workhorse

The Python clients, worker runtimes, and dashboard host for the Workhorse PostgreSQL durable execution protocol.

Public beta: Workhorse is usable for evaluation and early production adoption, but 0.x minor releases may break compatibility, including the schema. There is no upgrade path between 0.x releases; ordered migrations begin at 1.0.0.

Install

pip install stablemates-workhorse

Install the schema during deployment with the TypeScript CLI. Runtime processes should verify compatibility instead of attempting schema changes.

Requires Python 3.12 through 3.14 and PostgreSQL 15 through 18.

Run one job

from __future__ import annotations

import os

import psycopg

from workhorse import Queue, Worker

database_url = os.environ["DATABASE_URL"]

with psycopg.connect(database_url) as application_connection:
    job_id = Queue(application_connection).enqueue("email.welcome", {"to": "ada@example.com"})
    application_connection.commit()

with psycopg.connect(database_url, autocommit=True) as worker_connection:
    worker = Worker(worker_connection).handle(
        "email.welcome",
        lambda payload, _context: {"deliveredTo": payload["to"]},
    )
    assert worker.run_once() is True  # Production worker processes call run().

print(job_id)

Handlers receive at-least-once delivery. Use stable provider idempotency keys around external effects; named checkpoints prevent completed application stages from running after a later restart.

Package boundary

This distribution provides synchronous Psycopg and asynchronous Psycopg or asyncpg clients and workers. Application clients use caller-owned connections and transactions. Workers use dedicated connections for claims and lifecycle calls. The package never installs or migrates the shared PostgreSQL schema.

Next

License

Apache-2.0. See LICENSE and NOTICE in the package.

Metadata

Release files for stablemates-workhorse 0.1.0b3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stablemates-workhorse 0.1.0b3
File Size Uploaded Provenance
stablemates_workhorse-0.1.0b3.tar.gz 575.2 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for stablemates-workhorse 0.1.0b3
File Interpreter ABI Platform
stablemates_workhorse-0.1.0b3-py3-none-any.whl Python 3 none any Details

Total release size: 1.0 MB

Release files / stablemates_workhorse-0.1.0b3.tar.gz

Download URL stablemates_workhorse-0.1.0b3.tar.gz
Size 575.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5aa202296200d21fee936c978897ea0aa1b2d6abbb415035bee18f0260813209
BLAKE2b-256 checksum
How to use checksums
137967882d6e55bb06122d77c530f8d0aab727861d8ea70212cdbaf2c9beccd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.8 {"installer":{"name":"uv","version":"0.12.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Sep 1, 2026.

Transparency log

Release files / stablemates_workhorse-0.1.0b3-py3-none-any.whl

Download URL stablemates_workhorse-0.1.0b3-py3-none-any.whl
Size 472.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d37afe5f5029488d71fc284cc42c0a1f4ee42c93032f4032a88cbb07c60bc98d
BLAKE2b-256 checksum
How to use checksums
6c076a906cee8aa442cde936aa65652932c018ef597a10262ec4bc3fcc81b1d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.8 {"installer":{"name":"uv","version":"0.12.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Sep 1, 2026.

Transparency log

Security for stablemates-workhorse 0.1.0b3

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 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for stablemates_workhorse-0.1.0b3.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 Sep 1, 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.

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