Skip to main content

bedrock-celery

Celery integration for Bedrock. Your application creates and owns the Celery app; this package supplies pieces you add as needed:

  • connect_worker(app): runs bedrock.setup() in each worker process (after the fork with the prefork pool) and bedrock.shutdown() when the process exits.
  • BedrockTask: each task runs in its own Bedrock DI scope and database session. Services commit; uncommitted work is rolled back when the task ends. async def tasks run with bedrock.run_async() on Bedrock's runtime loop with db.asession.
from bedrock.database import db
from bedrock_celery import BedrockTask, connect_worker
from celery import Celery

app = Celery("shop", broker="redis://localhost:6379/0", task_cls=BedrockTask)
db.init()
connect_worker("shop.inventory")

See the Celery integration docs at https://bedrock-py.com/docs/integrations/celery for installation, the transaction convention, async tasks, and testing.

Metadata

Release files for bedrock-celery 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 bedrock-celery 0.1.0
File Size Uploaded Provenance Actions
bedrock_celery-0.1.0.tar.gz 4.1 kB Without provenance Details for bedrock_celery-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bedrock-celery 0.1.0
File Interpreter ABI Platform Actions
bedrock_celery-0.1.0-py3-none-any.whl Python 3 none any Details for bedrock_celery-0.1.0-py3-none-any.whl

Total release size: 9.6 kB

Release files / bedrock_celery-0.1.0.tar.gz

Download URL bedrock_celery-0.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5de75530357e82aebe217ddb893ec804a22465516f7541498201cec825d4d6c9
BLAKE2b-256 checksum
How to use checksums
6e58a04310b0884984940bab8411f544a33337e4b40c0118b02aba89dc63deb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / bedrock_celery-0.1.0-py3-none-any.whl

Download URL bedrock_celery-0.1.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
322cd3f8c59034d3f6e69c829bee81510bf267e8c8365e15ec3a4d439ee6ff8a
BLAKE2b-256 checksum
How to use checksums
959738ccd27c614ff51d192ac363e5d1865725f34eb874ed4a00c7d99ec6239c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for bedrock-celery 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.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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