Skip to main content

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.

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-0.7.1.tar.gz (8.4 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-0.7.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file vercel_dramatiq-0.7.1.tar.gz.

File metadata

  • Download URL: vercel_dramatiq-0.7.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","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-0.7.1.tar.gz
Algorithm Hash digest
SHA256 e63e7efadce63a2b68fc1c680728b6c15b1ff6ef6a77034e2d5125af6771c9d7
MD5 4c93dd2d348f88ec2d8ec761f314be6e
BLAKE2b-256 f85662a8c0c007c3e839045285a598b5ae7d46921b31b42f3eeb2fdcd4987483

See more details on using hashes here.

File details

Details for the file vercel_dramatiq-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: vercel_dramatiq-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","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-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0e3bbd8d90d6bb96f264a97b08133a13720859711c56ed494b5f92f4f53cf431
MD5 71bce0727c75bb04a88b1f7aaa3dd355
BLAKE2b-256 3a6ff2de7839b07dd85221a4741f07362dc6e0fa31d1b028a7b4f1538f8f8d8b

See more details on using hashes here.

Release history Release notifications | RSS feed

0.7.3

2 files

0.7.2

2 files

This release

0.7.1 This release

2 files

0.7.0

2 files

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