Skip to content

feat!: replace global registry with Workflows#97

Merged
fantix merged 8 commits intomainfrom
fantix/workflow-registry
Apr 14, 2026
Merged

feat!: replace global registry with Workflows#97
fantix merged 8 commits intomainfrom
fantix/workflow-registry

Conversation

@fantix
Copy link
Copy Markdown
Member

@fantix fantix commented Apr 14, 2026

Depends on #95

Instead of:

from vercel.workflow import *

@workflow
async def my_workflow():
    await my_step()
    ...

@step
async def my_step():
    ...

w/ vercel.json:

{
  "experimentalServices": {
    "my_workflow": {
      "type": "worker",
      "entrypoint": "backend/mypkg/myworkflow.py",
      "topics": ["__wkf_step_", "__wkf_workflow_"]
    }
}

Now we are aiming for:

from vercel import workflow

wf = workflow.Workflows()

@wf.workflow
async def my_workflow():
    await my_step()
    ...

@wf.step
async def my_step():
    ...

w/ vercel.json:

{
  "experimentalServices": {
    "my_workflow": {
      "type": "job",
      "trigger": "workflow",
      "root": "backend",
      "entrypoint": "mypkg.myworkflow:wf"
    }
}

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 14, 2026

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

Project Deployment Actions Updated (UTC)
vercel-py Ready Ready Preview Apr 14, 2026 10:37pm

Request Review

@fantix fantix changed the title feat!: replace global registry with WorkflowRegistry feat!: replace global registry with Workflows Apr 14, 2026
@fantix fantix marked this pull request as ready for review April 14, 2026 22:01
@fantix fantix requested a review from a team April 14, 2026 22:02
Comment thread src/vercel/_internal/workflow/core.py Outdated
Comment thread src/vercel/_internal/workflow/core.py
Base automatically changed from fantix/workflow-concurrent-sandbox to main April 14, 2026 22:32
@fantix fantix merged commit aab48e0 into main Apr 14, 2026
10 checks passed
@fantix fantix deleted the fantix/workflow-registry branch April 14, 2026 22:45
@scotttrinh scotttrinh mentioned this pull request Apr 15, 2026
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