Skip to main content

Dramatiq broker backed by Vercel Queue Service

Project description

vercel-dramatiq-bundle

This is a version of vercel-dramatiq with third-party dependencies bundled. For normal use, install the unbundled vercel-dramatiq package instead: https://pypi.org/project/vercel-dramatiq/

vercel-dramatiq

Dramatiq broker backed by Vercel Queue Service.

import dramatiq

from vercel.integrations.dramatiq import install_vercel_dramatiq_integration

install_vercel_dramatiq_integration()


@dramatiq.actor
def send_email(user_id: str) -> None: ...

The installer sets Dramatiq's global broker to VercelQueueBroker when no broker has been configured yet. Pass set_default_broker=False to opt out, or call dramatiq.set_broker(VercelQueueBroker(...)) directly when you need to construct the broker yourself.

The broker uses push delivery when VERCEL is truthy in the environment and poll delivery otherwise. Pass poll=False or poll=True to install_vercel_dramatiq_integration(...) to force a mode, or pass the same option to VercelQueueBroker(...) when constructing the broker yourself.

For Vercel push delivery, configure queue triggers for each declared queue and its Dramatiq delay queue. For example, the default Dramatiq queue maps to both the default topic and the sanitized default_DDQ delay topic. Retries and delayed messages are delivered through the delay queue topic.

Set VERCEL_DRAMATIQ_DEBUG=1 to enable debug logging for the integration and Dramatiq worker loggers.

The package is standalone and depends on vercel-queue and Dramatiq.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vercel_dramatiq_bundle-0.7.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vercel_dramatiq_bundle-0.7.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file vercel_dramatiq_bundle-0.7.0.tar.gz.

File metadata

  • Download URL: vercel_dramatiq_bundle-0.7.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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}

File hashes

Hashes for vercel_dramatiq_bundle-0.7.0.tar.gz
Algorithm Hash digest
SHA256 7752655c6667c1aa0ad22ba16db9ea033ec4f8615e410c5b890183d053397199
MD5 25e59be385b53acf0787376e47d73b86
BLAKE2b-256 f7cc4f130ea6c4fcde699e7a8183f0ac7d7167101dcb251a84bebbddb9cdcab6

See more details on using hashes here.

File details

Details for the file vercel_dramatiq_bundle-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: vercel_dramatiq_bundle-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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}

File hashes

Hashes for vercel_dramatiq_bundle-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 316b1f6ddeaca791cd8d1745c33776e7876949f4af5e0e3bd35bb9acaf149ceb
MD5 aaef06239783232039f1d174b4dbcdaf
BLAKE2b-256 7de3e1dae288b836deed0cfba39bbdfcd8a502ccc73c676b0e58bb763d739dc2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page