Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

stablemates-workhorse

Latest version: v1.0.0

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
PyPI package Publisher: orelant
48 Stars
0 Forks
12 Versions
848 Downloads
PLpgSQL Repo language

Scan summary

stablemates-workhorse was last scanned on 25 Nov 2026 at version 1.0.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 12 versions; the latest 4 were published within 5 days (21–25 Nov 2026).
  • Findings: No rules fired in version 1.0.0.
  • Downloads: 848 downloads.

Versions

12 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.0 LATEST 25 Nov 2026 No rules fired
0.17.0 24 Nov 2026 No rules fired
0.16.0 22 Nov 2026 No rules fired
0.15.0 21 Nov 2026 Not shown
0.14.0 13 Nov 2026 Not shown

No rules fired in 1.0.0

Findings

Findings for v1.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.0.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

stablemates-workhorse

The Python clients, worker runtimes, and dashboard host for the Workhorse durable task queue for PostgreSQL.

An AI agent should read the Workhorse documentation index first.

Install

pip install stablemates-workhorse

The package brings Psycopg, which loads libpq from the host. Some hosts have no libpq, for example a slim container image. On such a host, also install the binary Psycopg package, which includes libpq:

pip install stablemates-workhorse "psycopg[binary]"

Install the schema once, as a deployment step. The application never installs or migrates it.

npx --package @stablemates/workhorse@1.0.0 workhorse schema install

The machine that runs that deployment step needs Node.js 22 or newer. The application itself needs no Node.js.

Pin that version to the stablemates-workhorse version the application depends on. The two are released together from one commit, so the numbers match. The application refuses a schema below its schema floor, the oldest schema version it runs against. A schema at or above the floor is compatible while it still serves the application's protocol. A schema tool from an older release can leave a schema below that floor.

Runtime processes verify compatibility instead of changing the schema. Call assert_schema_compatible(connection) at startup. Call assert_schema_compatible_psycopg or assert_schema_compatible_asyncpg when the application is asynchronous.

Requires Python 3.12 through 3.14 and PostgreSQL 15 through 18.

Run one task

from __future__ import annotations

import os

import psycopg
from psycopg_pool import ConnectionPool

from workhorse import Queue, Worker

database_url = os.environ["DATABASE_URL"]

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

with ConnectionPool(
    database_url, min_size=3, max_size=3, kwargs={"autocommit": True}
) as worker_pool:
    worker = Worker(worker_pool).handle(
        "email.welcome",
        lambda payload, _context: {"deliveredTo": payload["to"]},
    )
    assert worker.run_once() is True  # Production worker processes call run().

print(task_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.

An AsyncWorker checkpoint operation follows asyncio cancellation. When a timeout or an asyncio.TaskGroup cancels the handler's await context.checkpoint(name, operation), the worker cancels the operation and waits for its cleanup before the cancellation reaches the handler. Cancellation before the operation returns stops the save, even when the operation catches the cancellation and returns a value, so a later attempt runs it again. Once the operation returns, its save may already be under way. The worker waits for that save instead of undoing it, so the handler sees CancelledError while a later attempt replays the saved value. A cancelled await therefore never proves that no checkpoint exists, and it does not undo the operation's effects on other systems.

The operation runs on the event loop in a copy of the handler's context. It sees the handler's context variables and current OpenTelemetry span, so its spans are children of the handler span.

Task groups, checkpoint inputs, and single passes

  • A task group tracks many tasks as one unit. After the group is sealed and every member task is finished, Workhorse enqueues the callback tasks of the group. The with queue.task_group(...) block creates a group, adds its tasks, and seals it in one transaction.
  • A handler can give the input of a checkpoint. Give it as context.checkpoint(name, operation, input=...). If a later run gives a different input, the call raises CheckpointInputConflictError, the task fails, and the operation does not run again. If the stored checkpoint or the call has no input, Workhorse compares nothing.
  • run_once() returns True only when a handler ran. It returns False after a pass that only released the tasks that it claimed. If you call it in a loop, wait after False.

Package boundary

This distribution provides synchronous Psycopg and asynchronous Psycopg or asyncpg clients and workers. Application clients use caller-owned connections and transactions. Workers take a caller-owned pool: Worker takes a Psycopg ConnectionPool, AsyncWorker.from_psycopg takes a Psycopg AsyncConnectionPool, and AsyncWorker.from_asyncpg takes an asyncpg Pool. A worker borrows a pool connection for each claim and lifecycle statement and returns it afterwards. Every worker on one pool also shares one heartbeat connection and one listener connection from that pool, so size the pool for them. Close the pool after run returns; the worker never closes it. The package never installs or migrates the shared PostgreSQL schema.

Next

License

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

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases stablemates-workhorse

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229