taskferry-celery
A Celery task backend for Taskferry. Enqueue Taskferry tasks onto a Celery app you already run; Taskferry supplies no worker and reimplements none of Celery.
pip install taskferry-celery[celery]
# Optional Redis transport/result backend support:
pip install taskferry-celery[redis]
# Optional convenience alias when the Celery broker is RabbitMQ:
pip install taskferry-celery[rabbitmq]
Submitting
from taskferry import Taskferry
runtime = Taskferry.from_mapping(
{
"backends": {"cel": {"factory": "celery", "app": "myapp.celery:app"}},
"defaults": {"task": "cel"},
}
)
runtime.tasks.submit("myapp.tasks:refresh", 42, queue="metadata")
Executing (worker)
Register the dispatcher once, then run Celery's own worker:
from celery import Celery
from taskferry_celery import register_dispatcher
from taskferry.functions import FunctionRegistry
app = Celery("myapp", broker="redis://localhost:6379/0")
# Result storage is independent from the broker and optional.
app.conf.result_backend = "redis://localhost:6379/1"
app.conf.task_serializer = "json"
app.conf.result_serializer = "json"
app.conf.accept_content = ["json"]
register_dispatcher(app, registry=FunctionRegistry(allowed_modules=["myapp"]))
RabbitMQ uses Celery's built-in AMQP transport; the rabbitmq extra is a
convenience installation alias for Celery and does not install Redis or a
separate RabbitMQ client:
app = Celery(
"myapp",
broker="amqp://taskferry:secret@rabbitmq:5672/myvhost",
backend="rpc://", # optional result store over AMQP; results are transient
)
RabbitMQ as a broker does not by itself store task results. Configure a Celery
result backend separately if TaskferryBackend.result() is needed. The RPC
backend can avoid Redis for result delivery; Celery also supports database and
other result backends.
celery -A myapp worker
Capabilities (honest)
| Advertised | Conditional / unavailable | Why |
|---|---|---|
| submit, state, cancel, delay, priority, retry | result only when app.conf.result_backend is set |
Celery discards return values when result storage is disabled |
deduplication |
Celery has no native mechanism — an idempotency_key is rejected, not ignored |
Retries are the engine's: the dispatcher raises Celery's own self.retry, so
a failed task is genuinely re-queued with the requested countdown. Taskferry never
loops in-process pretending to retry.
state maps Celery's PENDING/STARTED/SUCCESS/FAILURE/RETRY/REVOKED onto the
portable states. Set Celery's task_track_started if workers should persist the
STARTED state. Celery reports PENDING for both a queued task and an unknown
id, so those remain indistinguishable. result() reads Celery's configured
result backend; that can be Redis, a database or another Celery-supported store.
The Redis extra is optional, and Redis is not required as either broker or result
storage. The result store persists Celery's result, but Taskferry's own
Taskferry-id-to-Celery-id index is process-local. For cross-process lookups, keep
the Celery task id (Execution.external_id) and pass it to
runtime.get(celery_id, backend="celery"); a Django TaskResult lookup is not
provided by the bridge.
Delivery is at least once: workers can redeliver after a crash or lost ack. Make handlers idempotent. Taskferry retry policy is translated to Celery retries, with Celery as the sole retry owner. Revocation is best effort and cannot stop code already running. Result backends store a task's final return/error; Taskferry does not define a provider-neutral progress schema, so persist domain progress in your application store.
Only JSON-safe arguments and a "module:function" name cross the wire — never a
pickled callable.
License
Apache-2.0.
Metadata
Release files for taskferry-celery 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| taskferry_celery-0.2.0.tar.gz | 13.6 kB | With provenance | Details for taskferry_celery-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| taskferry_celery-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for taskferry_celery-0.2.0-py3-none-any.whl |
Total release size: 29.1 kB
Release files / taskferry_celery-0.2.0.tar.gz
| Download URL | taskferry_celery-0.2.0.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc2cd0b1db64be442c00251ef846128f50a02d7b40bdfe8cdf5d7f7fc2d8a9d0
|
|
BLAKE2b-256 checksum How to use checksums |
030ee4cf96332628bacbf4879c76ab26db9333f6339065b51e78b1425028cbdb
|
| 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 27, 2026.
Transparency logRelease files / taskferry_celery-0.2.0-py3-none-any.whl
| Download URL | taskferry_celery-0.2.0-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9136af2b813e6f0f9962dc9b86c2930762d1e08ed423261ebd978cdfde8e4257
|
|
BLAKE2b-256 checksum How to use checksums |
414c92b4fb157e9b6a9a936a387e7a31c1b8974ed86af31a178ef127ec45318b
|
| 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 27, 2026.
Transparency logSecurity for taskferry-celery 0.2.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
Both files in this release have been uploaded with provenance metadata.
Attestation for taskferry_celery-0.2.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 27, 2026.
Transparency logA 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.