Skip to content

apscheduler integration#168

Draft
ricardo-agz wants to merge 4 commits into
mainfrom
ricardo/vqs-apscheduler
Draft

apscheduler integration#168
ricardo-agz wants to merge 4 commits into
mainfrom
ricardo/vqs-apscheduler

Conversation

@ricardo-agz

Copy link
Copy Markdown
Collaborator

No description provided.

elprans and others added 2 commits July 9, 2026 16:23
This adds Kombu `Transport` implementations that work in `push` and
`poll` mode.  To use, install the `vercel-celery-broker` package and
call `install_vercel_celery_integration`:

    from vercel.integrations.celery import install_vercel_celery_integration
    install_vercel_celery_integration()

This registers three Kombu transport aliases:

- `vercel://` -- automatically chooses push/pull mode by detecting
  whether code is deployed on Vercel (by checking for `VERCEL` in env);

- `vercel-push://` -- explicit push transport, registers the queue
  callbacks via normal `vercel.queue` subscription mechanisms;

- `vercel-poll://` -- explicit poll transport, will always poll for
  messages.

Additionally, the installation function will set the default Celery
broker URL to `vercel://` (but only if it is yet unconfigured) and
automatically register all Celery queues as corresponding Vercel Queues
topic subscribers.  Users can opt out of either behavior by passing
`set_default_broker=False` and `register_queues=False` correspondingly.

The installation function also registers `vercel-runtime-cache://` as a
Celery result backend and sets it as the default result backend when
Celery has not already configured one.  This uses Vercel Runtime Cache
through `vercel.cache`, including its key hashing, namespacing, and local
fallback behavior.  Users can opt out of the default result backend by
passing `set_default_result_backend=False`.

Runtime Cache is an expiring, cache-backed backend rather than durable
result storage.  Stored results use Celery's `result_expires` value as
their Runtime Cache TTL by default, or
`result_backend_transport_options["ttl"]` when configured.
@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vercel-py Ready Ready Preview Jul 10, 2026 11:17pm

Request Review

@socket-security

socket-security Bot commented Jul 10, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedpypi/​anyio@​4.14.197100100100100
Addedpypi/​apscheduler@​3.11.3100100100100100
Addedpypi/​typing-extensions@​4.16.0100100100100100

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants