Add workflow health CLI command and web functionality - #816

Merged
TooTallNate merged 15 commits into
mainfrom
01-20-add_workflow_health_cli_command_and_web_functionality
Jan 21, 2026
Merged

Add workflow health CLI command and web functionality#816
TooTallNate merged 15 commits into
mainfrom
01-20-add_workflow_health_cli_command_and_web_functionality

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Jan 20, 2026

Copy link
Copy Markdown
Member

Web:

Screenshot 2026-01-20 at 14 14 17

CLI:

Screenshot 2026-01-20 at 13 55 26

Added health check functionality to both the CLI and web UI to verify workflow and step endpoints are operational.

What changed?

  • Added a new workflow health CLI command that checks the health of workflow and step endpoints
  • Added a Health Check button in the web UI that performs queue-based health checks
  • Implemented server actions to support health checks from the web interface
  • Created shared types and utilities for health check functionality

How to test?

CLI:

# Check both endpoints
workflow health
# Check specific endpoint
workflow health --endpoint workflow
# Set custom timeout
workflow health --timeout 60000
# Get JSON output
workflow health --json

Web UI:

  • Click the new Health Check button in the top navigation bar
  • Toast notifications will display the results of the health check

Why make this change?

This feature helps users quickly verify if their workflow infrastructure is operational, especially in environments with Vercel Deployment Protection. The queue-based health checks bypass deployment protection to provide accurate status information about the underlying infrastructure. This is useful for troubleshooting and ensuring the system is functioning properly.

@changeset-bot

changeset-botBot commented Jan 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bc70b8c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/cliPatch
@workflow/world-localPatch
@workflow/buildersPatch
@workflow/docs-typecheckPatch
@workflow/nextPatch
@workflow/nitroPatch
workflowPatch
@workflow/world-testingPatch
@workflow/world-postgresPatch
@workflow/astroPatch
@workflow/sveltekitPatch
@workflow/nuxtPatch
@workflow/aiPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production446038484
✅ 💻 Local Development408032440
✅ 📦 Local Production408032440
✅ 🐘 Local Postgres408032440
✅ 🪟 Windows440044
❌ 🌍 Community Worlds165230188
Total1879231342036

❌ Failed Tests

🌍 Community Worlds (23 failed)

mongodb (1 failed):

  • webhookWorkflow

redis (1 failed):

  • webhookWorkflow

starter (20 failed):

  • addTenWorkflow
  • addTenWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE

turso (1 failed):

  • webhookWorkflow

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4004
✅ example4004
✅ express4004
✅ fastify4004
✅ hono4004
✅ nextjs-turbopack4301
✅ nextjs-webpack4301
✅ nitro4004
✅ nuxt4004
✅ sveltekit4004
✅ vite4004
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4400
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb4310
✅ redis-dev300
❌ redis4310
✅ starter-dev300
❌ starter24200
✅ turso-dev300
❌ turso4310

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.038s (-14.4% 🟢)1.015s (~)0.977s101.00x
🌐 StarterNext.js (Turbopack)0.041s (-3.3%)1.014s (~)0.973s101.08x
🌐 RedisNext.js (Turbopack)0.041s (~)1.017s (~)0.976s101.08x
💻 LocalNitro0.043s (-6.1% 🟢)1.006s (~)0.963s101.14x
💻 LocalExpress0.044s (-3.1%)1.007s (~)0.963s101.15x
🌐 TursoNext.js (Turbopack)0.106s (-2.8%)1.014s (~)0.908s102.78x
🌐 MongoDBNext.js (Turbopack)0.117s (+21.2% 🔺)1.014s (~)0.897s103.07x
🐘 PostgresNext.js (Turbopack)0.268s (+73.8% 🔺)1.020s (~)0.752s107.02x
🐘 PostgresNitro0.306s (+24.5% 🔺)1.012s (~)0.706s108.03x
🐘 PostgresExpress0.324s (~)1.013s (~)0.689s108.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.544s (-9.8% 🟢)1.409s (-10.8% 🟢)0.865s101.00x
▲ VercelExpress0.567s (-19.5% 🟢)1.511s (-9.7% 🟢)0.943s101.04x
▲ VercelNext.js (Turbopack)0.694s (-14.2% 🟢)1.574s (-14.1% 🟢)0.880s101.28x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.089s (~)2.010s (~)0.920s101.00x
💻 LocalNext.js (Turbopack)1.094s (~)2.011s (~)0.917s101.00x
🌐 RedisNext.js (Turbopack)1.098s (-0.9%)2.012s (~)0.914s101.01x
💻 LocalNitro1.113s (~)2.006s (~)0.893s101.02x
💻 LocalExpress1.115s (~)2.006s (~)0.891s101.02x
🌐 MongoDBNext.js (Turbopack)1.301s (~)2.014s (~)0.712s101.19x
🌐 TursoNext.js (Turbopack)1.312s (+1.3%)2.013s (~)0.701s101.20x
🐘 PostgresNext.js (Turbopack)1.597s (-17.8% 🟢)2.017s (~)0.420s101.47x
🐘 PostgresNitro2.186s (-0.6%)3.014s (~)0.828s102.01x
🐘 PostgresExpress2.192s (-10.2% 🟢)3.013s (~)0.821s102.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.714s (-5.6% 🟢)3.813s (+3.5%)1.099s101.00x
▲ VercelExpress2.896s (+4.1%)3.707s (+2.3%)0.811s101.07x
▲ VercelNext.js (Turbopack)3.014s (+4.0%)3.895s (+3.3%)0.880s101.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.600s (~)11.012s (~)0.412s51.00x
💻 LocalNext.js (Turbopack)10.659s (~)11.016s (~)0.357s51.01x
🌐 RedisNext.js (Turbopack)10.681s (~)11.019s (~)0.338s51.01x
💻 LocalNitro10.788s (~)11.013s (~)0.225s51.02x
💻 LocalExpress10.789s (~)11.015s (~)0.226s51.02x
🌐 TursoNext.js (Turbopack)12.200s (~)13.022s (~)0.822s51.15x
🌐 MongoDBNext.js (Turbopack)12.214s (~)13.026s (~)0.812s51.15x
🐘 PostgresNext.js (Turbopack)14.021s (-8.3% 🟢)14.435s (-10.0% 🟢)0.414s51.32x
🐘 PostgresExpress20.337s (~)21.029s (~)0.692s51.92x
🐘 PostgresNitro20.355s (-0.5%)21.033s (~)0.679s51.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)21.501s (-6.6% 🟢)22.056s (-7.8% 🟢)0.554s51.00x
▲ VercelNitro21.612s (-7.5% 🟢)22.218s (-7.2% 🟢)0.606s51.01x
▲ VercelExpress21.905s (-5.6% 🟢)22.830s (-6.1% 🟢)0.925s51.02x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.350s (-1.3%)2.008s (~)0.658s151.00x
🌐 RedisNext.js (Turbopack)1.365s (+0.5%)2.010s (~)0.645s151.01x
💻 LocalNext.js (Turbopack)1.381s (~)2.011s (~)0.631s151.02x
💻 LocalNitro1.404s (-1.9%)2.005s (~)0.601s151.04x
💻 LocalExpress1.415s (~)2.005s (~)0.590s151.05x
🐘 PostgresNext.js (Turbopack)1.673s (-12.1% 🟢)2.014s (-3.6%)0.341s151.24x
🐘 PostgresNitro2.107s (-10.7% 🟢)2.511s (-16.6% 🟢)0.403s121.56x
🌐 MongoDBNext.js (Turbopack)2.156s (+0.7%)3.012s (~)0.856s101.60x
🌐 TursoNext.js (Turbopack)2.188s (-1.7%)3.016s (~)0.828s101.62x
🐘 PostgresExpress2.469s (-6.9% 🟢)3.011s (~)0.542s101.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.725s (-27.8% 🟢)3.566s (-24.4% 🟢)0.841s91.00x
▲ VercelExpress2.848s (-32.4% 🟢)3.668s (-25.1% 🟢)0.820s91.05x
▲ VercelNitro7.179s (+60.5% 🔺)7.962s (+57.9% 🔺)0.784s72.63x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.150s (+1.8%)2.966s (-2.4%)0.816s111.00x
💻 LocalExpress2.212s (~)3.168s (~)0.955s101.03x
💻 LocalNitro2.247s (-1.0%)3.216s (~)0.969s101.05x
🐘 PostgresNitro2.351s (-20.7% 🟢)3.012s (-16.0% 🟢)0.660s101.09x
🌐 StarterNext.js (Turbopack)2.462s (~)3.009s (~)0.546s101.15x
🌐 RedisNext.js (Turbopack)2.492s (~)3.019s (~)0.527s101.16x
🐘 PostgresNext.js (Turbopack)2.688s (+3.6%)3.025s (-3.5%)0.338s101.25x
🐘 PostgresExpress2.915s (-3.3%)3.112s (-7.3% 🟢)0.197s101.36x
🌐 MongoDBNext.js (Turbopack)4.624s (-4.0%)5.179s (~)0.555s62.15x
🌐 TursoNext.js (Turbopack)4.775s (+1.2%)5.181s (~)0.407s62.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.337s (-9.1% 🟢)3.933s (-11.9% 🟢)0.595s81.00x
▲ VercelNext.js (Turbopack)3.362s (-6.3% 🟢)3.888s (-9.8% 🟢)0.525s81.01x
▲ VercelNitro4.012s (+5.4% 🔺)4.721s (-0.6%)0.709s71.20x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.355s (-1.1%)2.008s (~)0.653s151.00x
🌐 RedisNext.js (Turbopack)1.375s (-0.7%)2.011s (~)0.636s151.01x
💻 LocalNext.js (Turbopack)1.411s (+0.6%)2.014s (~)0.603s151.04x
💻 LocalExpress1.416s (~)2.006s (~)0.590s151.04x
💻 LocalNitro1.431s (~)2.006s (~)0.575s151.06x
🐘 PostgresNext.js (Turbopack)1.647s (-9.8% 🟢)2.014s (~)0.367s151.22x
🐘 PostgresNitro1.693s (-10.7% 🟢)2.010s (~)0.317s151.25x
🐘 PostgresExpress2.146s (+27.5% 🔺)2.926s (+45.6% 🔺)0.780s111.58x
🌐 MongoDBNext.js (Turbopack)2.156s (+0.6%)3.012s (~)0.856s101.59x
🌐 TursoNext.js (Turbopack)2.203s (~)3.013s (~)0.810s101.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.677s (-12.5% 🟢)3.659s (-0.7%)0.982s91.00x
▲ VercelNext.js (Turbopack)2.684s (-17.9% 🟢)3.652s (-12.7% 🟢)0.968s91.00x
▲ VercelNitro2.713s (-13.9% 🟢)3.603s (-8.1% 🟢)0.890s91.01x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.203s (~)3.111s (+1.3%)0.908s101.00x
💻 LocalExpress2.332s (+5.4% 🔺)3.213s (+1.4%)0.881s101.06x
💻 LocalNitro2.385s (+6.7% 🔺)3.261s (+1.9%)0.876s101.08x
🐘 PostgresNext.js (Turbopack)2.416s (-6.1% 🟢)3.027s (~)0.612s101.10x
🌐 StarterNext.js (Turbopack)2.466s (~)3.009s (~)0.542s101.12x
🌐 RedisNext.js (Turbopack)2.514s (+1.0%)3.010s (~)0.495s101.14x
🐘 PostgresNitro2.848s (+3.0%)3.021s (~)0.173s101.29x
🐘 PostgresExpress2.986s (+8.1% 🔺)3.356s (+11.3% 🔺)0.370s91.36x
🌐 TursoNext.js (Turbopack)4.750s (~)5.184s (~)0.434s62.16x
🌐 MongoDBNext.js (Turbopack)4.766s (+1.1%)5.178s (~)0.412s62.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.069s (+0.8%)3.652s (~)0.583s91.00x
▲ VercelNext.js (Turbopack)3.190s (-3.6%)3.777s (-1.4%)0.588s81.04x
▲ VercelNitro3.316s (+1.9%)3.925s (+1.8%)0.609s91.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.131s (~)1.005s (~)0.000s (+Infinity% 🔺)1.011s (~)0.879s101.00x
💻 LocalNext.js (Turbopack)0.142s (+2.2%)1.002s (~)0.019s (+16.3% 🔺)1.029s (~)0.887s101.08x
🌐 RedisNext.js (Turbopack)0.148s (+3.2%)1.005s (~)0.000s (+Infinity% 🔺)1.014s (~)0.866s101.13x
💻 LocalNitro0.175s (-5.4% 🟢)0.993s (~)0.015s (-6.2% 🟢)1.022s (~)0.847s101.33x
💻 LocalExpress0.177s (+2.5%)0.992s (~)0.015s (+4.9%)1.021s (~)0.844s101.35x
🌐 TursoNext.js (Turbopack)0.461s (-12.5% 🟢)0.991s (+6.9% 🔺)0.000s (+100.0% 🔺)1.013s (~)0.552s103.51x
🌐 MongoDBNext.js (Turbopack)0.513s (+13.5% 🔺)0.936s (-6.3% 🟢)0.000s (NaN%)1.013s (~)0.500s103.91x
🐘 PostgresNext.js (Turbopack)0.705s (-43.5% 🟢)0.834s (-53.7% 🟢)0.000s (NaN%)1.016s (-49.7% 🟢)0.310s105.37x
🐘 PostgresNitro2.371s (+4.1%)2.672s (-3.4%)0.000s (NaN%)3.015s (~)0.644s1018.06x
🐘 PostgresExpress2.374s (+10.9% 🔺)2.668s (-8.0% 🟢)0.000s (-100.0% 🟢)3.014s (~)0.640s1018.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.771s (-22.0% 🟢)3.209s (-18.8% 🟢)0.318s (-38.7% 🟢)3.935s (-21.1% 🟢)1.164s101.00x
▲ VercelNitro2.802s (-0.6%)3.226s (~)0.156s (-60.1% 🟢)3.851s (-9.0% 🟢)1.049s101.01x
▲ VercelExpress2.939s (-1.1%)3.306s (+2.0%)0.192s (-72.6% 🟢)4.037s (-8.7% 🟢)1.098s101.06x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)7/8
▲ VercelNext.js (Turbopack)3/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter5/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@TooTallNateGraphite App

Copy link
Copy Markdown
MemberAuthor

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vercel

vercelBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

Comment threadpackages/web-shared/src/api/workflow-server-actions.ts Outdated
Comment threadpackages/web/src/components/display-utils/health-check-button.tsx Outdated
Comment on lines +40 to +45
// Check env var directly in case it was set after the config was cached
// This is important for CLI tools that set the env var after module import
if (process.env.WORKFLOW_LOCAL_BASE_URL) {
return process.env.WORKFLOW_LOCAL_BASE_URL;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oof - good catch. also writing to process.env is really messy and prone to so many issues. we really need to clean this up @VaguelySerious

Comment threadpackages/cli/src/commands/health.ts

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The code is trying to access the error property on a ServerActionResult<HealthCheckResultWithLatency> type that only has a success property when success is true. This is a TypeScript type error where the property doesn't exist on the success case of the union type.

Fix on Vercel

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The code is attempting to access the error property on a ServerActionResult<HealthCheckResultWithLatency> type, but this property doesn't exist on the { success: true; data: HealthCheckResultWithLatency; } union member. This is a TypeScript type error.

Fix on Vercel

}
);

test(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Sign up for freeto 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.

3 participants

@TooTallNate@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Add workflow health CLI command and web functionality - #816

Merged
TooTallNate merged 15 commits into
mainfrom
01-20-add_workflow_health_cli_command_and_web_functionality
Jan 21, 2026
Merged

Add workflow health CLI command and web functionality#816
TooTallNate merged 15 commits into
mainfrom
01-20-add_workflow_health_cli_command_and_web_functionality

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Jan 20, 2026

Copy link
Copy Markdown
Member

Web:

Screenshot 2026-01-20 at 14 14 17

CLI:

Screenshot 2026-01-20 at 13 55 26

Added health check functionality to both the CLI and web UI to verify workflow and step endpoints are operational.

What changed?

  • Added a new workflow health CLI command that checks the health of workflow and step endpoints
  • Added a Health Check button in the web UI that performs queue-based health checks
  • Implemented server actions to support health checks from the web interface
  • Created shared types and utilities for health check functionality

How to test?

CLI:

# Check both endpoints
workflow health
# Check specific endpoint
workflow health --endpoint workflow
# Set custom timeout
workflow health --timeout 60000
# Get JSON output
workflow health --json

Web UI:

  • Click the new Health Check button in the top navigation bar
  • Toast notifications will display the results of the health check

Why make this change?

This feature helps users quickly verify if their workflow infrastructure is operational, especially in environments with Vercel Deployment Protection. The queue-based health checks bypass deployment protection to provide accurate status information about the underlying infrastructure. This is useful for troubleshooting and ensuring the system is functioning properly.

@changeset-bot

changeset-botBot commented Jan 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bc70b8c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/cliPatch
@workflow/world-localPatch
@workflow/buildersPatch
@workflow/docs-typecheckPatch
@workflow/nextPatch
@workflow/nitroPatch
workflowPatch
@workflow/world-testingPatch
@workflow/world-postgresPatch
@workflow/astroPatch
@workflow/sveltekitPatch
@workflow/nuxtPatch
@workflow/aiPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production446038484
✅ 💻 Local Development408032440
✅ 📦 Local Production408032440
✅ 🐘 Local Postgres408032440
✅ 🪟 Windows440044
❌ 🌍 Community Worlds165230188
Total1879231342036

❌ Failed Tests

🌍 Community Worlds (23 failed)

mongodb (1 failed):

  • webhookWorkflow

redis (1 failed):

  • webhookWorkflow

starter (20 failed):

  • addTenWorkflow
  • addTenWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE

turso (1 failed):

  • webhookWorkflow

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4004
✅ example4004
✅ express4004
✅ fastify4004
✅ hono4004
✅ nextjs-turbopack4301
✅ nextjs-webpack4301
✅ nitro4004
✅ nuxt4004
✅ sveltekit4004
✅ vite4004
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4400
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb4310
✅ redis-dev300
❌ redis4310
✅ starter-dev300
❌ starter24200
✅ turso-dev300
❌ turso4310

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.038s (-14.4% 🟢)1.015s (~)0.977s101.00x
🌐 StarterNext.js (Turbopack)0.041s (-3.3%)1.014s (~)0.973s101.08x
🌐 RedisNext.js (Turbopack)0.041s (~)1.017s (~)0.976s101.08x
💻 LocalNitro0.043s (-6.1% 🟢)1.006s (~)0.963s101.14x
💻 LocalExpress0.044s (-3.1%)1.007s (~)0.963s101.15x
🌐 TursoNext.js (Turbopack)0.106s (-2.8%)1.014s (~)0.908s102.78x
🌐 MongoDBNext.js (Turbopack)0.117s (+21.2% 🔺)1.014s (~)0.897s103.07x
🐘 PostgresNext.js (Turbopack)0.268s (+73.8% 🔺)1.020s (~)0.752s107.02x
🐘 PostgresNitro0.306s (+24.5% 🔺)1.012s (~)0.706s108.03x
🐘 PostgresExpress0.324s (~)1.013s (~)0.689s108.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.544s (-9.8% 🟢)1.409s (-10.8% 🟢)0.865s101.00x
▲ VercelExpress0.567s (-19.5% 🟢)1.511s (-9.7% 🟢)0.943s101.04x
▲ VercelNext.js (Turbopack)0.694s (-14.2% 🟢)1.574s (-14.1% 🟢)0.880s101.28x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.089s (~)2.010s (~)0.920s101.00x
💻 LocalNext.js (Turbopack)1.094s (~)2.011s (~)0.917s101.00x
🌐 RedisNext.js (Turbopack)1.098s (-0.9%)2.012s (~)0.914s101.01x
💻 LocalNitro1.113s (~)2.006s (~)0.893s101.02x
💻 LocalExpress1.115s (~)2.006s (~)0.891s101.02x
🌐 MongoDBNext.js (Turbopack)1.301s (~)2.014s (~)0.712s101.19x
🌐 TursoNext.js (Turbopack)1.312s (+1.3%)2.013s (~)0.701s101.20x
🐘 PostgresNext.js (Turbopack)1.597s (-17.8% 🟢)2.017s (~)0.420s101.47x
🐘 PostgresNitro2.186s (-0.6%)3.014s (~)0.828s102.01x
🐘 PostgresExpress2.192s (-10.2% 🟢)3.013s (~)0.821s102.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.714s (-5.6% 🟢)3.813s (+3.5%)1.099s101.00x
▲ VercelExpress2.896s (+4.1%)3.707s (+2.3%)0.811s101.07x
▲ VercelNext.js (Turbopack)3.014s (+4.0%)3.895s (+3.3%)0.880s101.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.600s (~)11.012s (~)0.412s51.00x
💻 LocalNext.js (Turbopack)10.659s (~)11.016s (~)0.357s51.01x
🌐 RedisNext.js (Turbopack)10.681s (~)11.019s (~)0.338s51.01x
💻 LocalNitro10.788s (~)11.013s (~)0.225s51.02x
💻 LocalExpress10.789s (~)11.015s (~)0.226s51.02x
🌐 TursoNext.js (Turbopack)12.200s (~)13.022s (~)0.822s51.15x
🌐 MongoDBNext.js (Turbopack)12.214s (~)13.026s (~)0.812s51.15x
🐘 PostgresNext.js (Turbopack)14.021s (-8.3% 🟢)14.435s (-10.0% 🟢)0.414s51.32x
🐘 PostgresExpress20.337s (~)21.029s (~)0.692s51.92x
🐘 PostgresNitro20.355s (-0.5%)21.033s (~)0.679s51.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)21.501s (-6.6% 🟢)22.056s (-7.8% 🟢)0.554s51.00x
▲ VercelNitro21.612s (-7.5% 🟢)22.218s (-7.2% 🟢)0.606s51.01x
▲ VercelExpress21.905s (-5.6% 🟢)22.830s (-6.1% 🟢)0.925s51.02x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.350s (-1.3%)2.008s (~)0.658s151.00x
🌐 RedisNext.js (Turbopack)1.365s (+0.5%)2.010s (~)0.645s151.01x
💻 LocalNext.js (Turbopack)1.381s (~)2.011s (~)0.631s151.02x
💻 LocalNitro1.404s (-1.9%)2.005s (~)0.601s151.04x
💻 LocalExpress1.415s (~)2.005s (~)0.590s151.05x
🐘 PostgresNext.js (Turbopack)1.673s (-12.1% 🟢)2.014s (-3.6%)0.341s151.24x
🐘 PostgresNitro2.107s (-10.7% 🟢)2.511s (-16.6% 🟢)0.403s121.56x
🌐 MongoDBNext.js (Turbopack)2.156s (+0.7%)3.012s (~)0.856s101.60x
🌐 TursoNext.js (Turbopack)2.188s (-1.7%)3.016s (~)0.828s101.62x
🐘 PostgresExpress2.469s (-6.9% 🟢)3.011s (~)0.542s101.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.725s (-27.8% 🟢)3.566s (-24.4% 🟢)0.841s91.00x
▲ VercelExpress2.848s (-32.4% 🟢)3.668s (-25.1% 🟢)0.820s91.05x
▲ VercelNitro7.179s (+60.5% 🔺)7.962s (+57.9% 🔺)0.784s72.63x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.150s (+1.8%)2.966s (-2.4%)0.816s111.00x
💻 LocalExpress2.212s (~)3.168s (~)0.955s101.03x
💻 LocalNitro2.247s (-1.0%)3.216s (~)0.969s101.05x
🐘 PostgresNitro2.351s (-20.7% 🟢)3.012s (-16.0% 🟢)0.660s101.09x
🌐 StarterNext.js (Turbopack)2.462s (~)3.009s (~)0.546s101.15x
🌐 RedisNext.js (Turbopack)2.492s (~)3.019s (~)0.527s101.16x
🐘 PostgresNext.js (Turbopack)2.688s (+3.6%)3.025s (-3.5%)0.338s101.25x
🐘 PostgresExpress2.915s (-3.3%)3.112s (-7.3% 🟢)0.197s101.36x
🌐 MongoDBNext.js (Turbopack)4.624s (-4.0%)5.179s (~)0.555s62.15x
🌐 TursoNext.js (Turbopack)4.775s (+1.2%)5.181s (~)0.407s62.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.337s (-9.1% 🟢)3.933s (-11.9% 🟢)0.595s81.00x
▲ VercelNext.js (Turbopack)3.362s (-6.3% 🟢)3.888s (-9.8% 🟢)0.525s81.01x
▲ VercelNitro4.012s (+5.4% 🔺)4.721s (-0.6%)0.709s71.20x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.355s (-1.1%)2.008s (~)0.653s151.00x
🌐 RedisNext.js (Turbopack)1.375s (-0.7%)2.011s (~)0.636s151.01x
💻 LocalNext.js (Turbopack)1.411s (+0.6%)2.014s (~)0.603s151.04x
💻 LocalExpress1.416s (~)2.006s (~)0.590s151.04x
💻 LocalNitro1.431s (~)2.006s (~)0.575s151.06x
🐘 PostgresNext.js (Turbopack)1.647s (-9.8% 🟢)2.014s (~)0.367s151.22x
🐘 PostgresNitro1.693s (-10.7% 🟢)2.010s (~)0.317s151.25x
🐘 PostgresExpress2.146s (+27.5% 🔺)2.926s (+45.6% 🔺)0.780s111.58x
🌐 MongoDBNext.js (Turbopack)2.156s (+0.6%)3.012s (~)0.856s101.59x
🌐 TursoNext.js (Turbopack)2.203s (~)3.013s (~)0.810s101.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.677s (-12.5% 🟢)3.659s (-0.7%)0.982s91.00x
▲ VercelNext.js (Turbopack)2.684s (-17.9% 🟢)3.652s (-12.7% 🟢)0.968s91.00x
▲ VercelNitro2.713s (-13.9% 🟢)3.603s (-8.1% 🟢)0.890s91.01x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.203s (~)3.111s (+1.3%)0.908s101.00x
💻 LocalExpress2.332s (+5.4% 🔺)3.213s (+1.4%)0.881s101.06x
💻 LocalNitro2.385s (+6.7% 🔺)3.261s (+1.9%)0.876s101.08x
🐘 PostgresNext.js (Turbopack)2.416s (-6.1% 🟢)3.027s (~)0.612s101.10x
🌐 StarterNext.js (Turbopack)2.466s (~)3.009s (~)0.542s101.12x
🌐 RedisNext.js (Turbopack)2.514s (+1.0%)3.010s (~)0.495s101.14x
🐘 PostgresNitro2.848s (+3.0%)3.021s (~)0.173s101.29x
🐘 PostgresExpress2.986s (+8.1% 🔺)3.356s (+11.3% 🔺)0.370s91.36x
🌐 TursoNext.js (Turbopack)4.750s (~)5.184s (~)0.434s62.16x
🌐 MongoDBNext.js (Turbopack)4.766s (+1.1%)5.178s (~)0.412s62.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.069s (+0.8%)3.652s (~)0.583s91.00x
▲ VercelNext.js (Turbopack)3.190s (-3.6%)3.777s (-1.4%)0.588s81.04x
▲ VercelNitro3.316s (+1.9%)3.925s (+1.8%)0.609s91.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.131s (~)1.005s (~)0.000s (+Infinity% 🔺)1.011s (~)0.879s101.00x
💻 LocalNext.js (Turbopack)0.142s (+2.2%)1.002s (~)0.019s (+16.3% 🔺)1.029s (~)0.887s101.08x
🌐 RedisNext.js (Turbopack)0.148s (+3.2%)1.005s (~)0.000s (+Infinity% 🔺)1.014s (~)0.866s101.13x
💻 LocalNitro0.175s (-5.4% 🟢)0.993s (~)0.015s (-6.2% 🟢)1.022s (~)0.847s101.33x
💻 LocalExpress0.177s (+2.5%)0.992s (~)0.015s (+4.9%)1.021s (~)0.844s101.35x
🌐 TursoNext.js (Turbopack)0.461s (-12.5% 🟢)0.991s (+6.9% 🔺)0.000s (+100.0% 🔺)1.013s (~)0.552s103.51x
🌐 MongoDBNext.js (Turbopack)0.513s (+13.5% 🔺)0.936s (-6.3% 🟢)0.000s (NaN%)1.013s (~)0.500s103.91x
🐘 PostgresNext.js (Turbopack)0.705s (-43.5% 🟢)0.834s (-53.7% 🟢)0.000s (NaN%)1.016s (-49.7% 🟢)0.310s105.37x
🐘 PostgresNitro2.371s (+4.1%)2.672s (-3.4%)0.000s (NaN%)3.015s (~)0.644s1018.06x
🐘 PostgresExpress2.374s (+10.9% 🔺)2.668s (-8.0% 🟢)0.000s (-100.0% 🟢)3.014s (~)0.640s1018.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.771s (-22.0% 🟢)3.209s (-18.8% 🟢)0.318s (-38.7% 🟢)3.935s (-21.1% 🟢)1.164s101.00x
▲ VercelNitro2.802s (-0.6%)3.226s (~)0.156s (-60.1% 🟢)3.851s (-9.0% 🟢)1.049s101.01x
▲ VercelExpress2.939s (-1.1%)3.306s (+2.0%)0.192s (-72.6% 🟢)4.037s (-8.7% 🟢)1.098s101.06x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)7/8
▲ VercelNext.js (Turbopack)3/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter5/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@TooTallNateGraphite App

Copy link
Copy Markdown
MemberAuthor

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vercel

vercelBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

Comment threadpackages/web-shared/src/api/workflow-server-actions.ts Outdated
Comment threadpackages/web/src/components/display-utils/health-check-button.tsx Outdated
Comment on lines +40 to +45
// Check env var directly in case it was set after the config was cached
// This is important for CLI tools that set the env var after module import
if (process.env.WORKFLOW_LOCAL_BASE_URL) {
return process.env.WORKFLOW_LOCAL_BASE_URL;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oof - good catch. also writing to process.env is really messy and prone to so many issues. we really need to clean this up @VaguelySerious

Comment threadpackages/cli/src/commands/health.ts

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The code is trying to access the error property on a ServerActionResult<HealthCheckResultWithLatency> type that only has a success property when success is true. This is a TypeScript type error where the property doesn't exist on the success case of the union type.

Fix on Vercel

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The code is attempting to access the error property on a ServerActionResult<HealthCheckResultWithLatency> type, but this property doesn't exist on the { success: true; data: HealthCheckResultWithLatency; } union member. This is a TypeScript type error.

Fix on Vercel

}
);

test(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Sign up for freeto 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.

3 participants

@TooTallNate@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Add workflow health CLI command and web functionality - #816

Merged
TooTallNate merged 15 commits into
mainfrom
01-20-add_workflow_health_cli_command_and_web_functionality
Jan 21, 2026
Merged

Add workflow health CLI command and web functionality#816
TooTallNate merged 15 commits into
mainfrom
01-20-add_workflow_health_cli_command_and_web_functionality

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Jan 20, 2026

Copy link
Copy Markdown
Member

Web:

Screenshot 2026-01-20 at 14 14 17

CLI:

Screenshot 2026-01-20 at 13 55 26

Added health check functionality to both the CLI and web UI to verify workflow and step endpoints are operational.

What changed?

  • Added a new workflow health CLI command that checks the health of workflow and step endpoints
  • Added a Health Check button in the web UI that performs queue-based health checks
  • Implemented server actions to support health checks from the web interface
  • Created shared types and utilities for health check functionality

How to test?

CLI:

# Check both endpoints
workflow health
# Check specific endpoint
workflow health --endpoint workflow
# Set custom timeout
workflow health --timeout 60000
# Get JSON output
workflow health --json

Web UI:

  • Click the new Health Check button in the top navigation bar
  • Toast notifications will display the results of the health check

Why make this change?

This feature helps users quickly verify if their workflow infrastructure is operational, especially in environments with Vercel Deployment Protection. The queue-based health checks bypass deployment protection to provide accurate status information about the underlying infrastructure. This is useful for troubleshooting and ensuring the system is functioning properly.

@changeset-bot

changeset-botBot commented Jan 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bc70b8c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/cliPatch
@workflow/world-localPatch
@workflow/buildersPatch
@workflow/docs-typecheckPatch
@workflow/nextPatch
@workflow/nitroPatch
workflowPatch
@workflow/world-testingPatch
@workflow/world-postgresPatch
@workflow/astroPatch
@workflow/sveltekitPatch
@workflow/nuxtPatch
@workflow/aiPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production446038484
✅ 💻 Local Development408032440
✅ 📦 Local Production408032440
✅ 🐘 Local Postgres408032440
✅ 🪟 Windows440044
❌ 🌍 Community Worlds165230188
Total1879231342036

❌ Failed Tests

🌍 Community Worlds (23 failed)

mongodb (1 failed):

  • webhookWorkflow

redis (1 failed):

  • webhookWorkflow

starter (20 failed):

  • addTenWorkflow
  • addTenWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE

turso (1 failed):

  • webhookWorkflow

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4004
✅ example4004
✅ express4004
✅ fastify4004
✅ hono4004
✅ nextjs-turbopack4301
✅ nextjs-webpack4301
✅ nitro4004
✅ nuxt4004
✅ sveltekit4004
✅ vite4004
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4400
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb4310
✅ redis-dev300
❌ redis4310
✅ starter-dev300
❌ starter24200
✅ turso-dev300
❌ turso4310

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.038s (-14.4% 🟢)1.015s (~)0.977s101.00x
🌐 StarterNext.js (Turbopack)0.041s (-3.3%)1.014s (~)0.973s101.08x
🌐 RedisNext.js (Turbopack)0.041s (~)1.017s (~)0.976s101.08x
💻 LocalNitro0.043s (-6.1% 🟢)1.006s (~)0.963s101.14x
💻 LocalExpress0.044s (-3.1%)1.007s (~)0.963s101.15x
🌐 TursoNext.js (Turbopack)0.106s (-2.8%)1.014s (~)0.908s102.78x
🌐 MongoDBNext.js (Turbopack)0.117s (+21.2% 🔺)1.014s (~)0.897s103.07x
🐘 PostgresNext.js (Turbopack)0.268s (+73.8% 🔺)1.020s (~)0.752s107.02x
🐘 PostgresNitro0.306s (+24.5% 🔺)1.012s (~)0.706s108.03x
🐘 PostgresExpress0.324s (~)1.013s (~)0.689s108.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.544s (-9.8% 🟢)1.409s (-10.8% 🟢)0.865s101.00x
▲ VercelExpress0.567s (-19.5% 🟢)1.511s (-9.7% 🟢)0.943s101.04x
▲ VercelNext.js (Turbopack)0.694s (-14.2% 🟢)1.574s (-14.1% 🟢)0.880s101.28x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.089s (~)2.010s (~)0.920s101.00x
💻 LocalNext.js (Turbopack)1.094s (~)2.011s (~)0.917s101.00x
🌐 RedisNext.js (Turbopack)1.098s (-0.9%)2.012s (~)0.914s101.01x
💻 LocalNitro1.113s (~)2.006s (~)0.893s101.02x
💻 LocalExpress1.115s (~)2.006s (~)0.891s101.02x
🌐 MongoDBNext.js (Turbopack)1.301s (~)2.014s (~)0.712s101.19x
🌐 TursoNext.js (Turbopack)1.312s (+1.3%)2.013s (~)0.701s101.20x
🐘 PostgresNext.js (Turbopack)1.597s (-17.8% 🟢)2.017s (~)0.420s101.47x
🐘 PostgresNitro2.186s (-0.6%)3.014s (~)0.828s102.01x
🐘 PostgresExpress2.192s (-10.2% 🟢)3.013s (~)0.821s102.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.714s (-5.6% 🟢)3.813s (+3.5%)1.099s101.00x
▲ VercelExpress2.896s (+4.1%)3.707s (+2.3%)0.811s101.07x
▲ VercelNext.js (Turbopack)3.014s (+4.0%)3.895s (+3.3%)0.880s101.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.600s (~)11.012s (~)0.412s51.00x
💻 LocalNext.js (Turbopack)10.659s (~)11.016s (~)0.357s51.01x
🌐 RedisNext.js (Turbopack)10.681s (~)11.019s (~)0.338s51.01x
💻 LocalNitro10.788s (~)11.013s (~)0.225s51.02x
💻 LocalExpress10.789s (~)11.015s (~)0.226s51.02x
🌐 TursoNext.js (Turbopack)12.200s (~)13.022s (~)0.822s51.15x
🌐 MongoDBNext.js (Turbopack)12.214s (~)13.026s (~)0.812s51.15x
🐘 PostgresNext.js (Turbopack)14.021s (-8.3% 🟢)14.435s (-10.0% 🟢)0.414s51.32x
🐘 PostgresExpress20.337s (~)21.029s (~)0.692s51.92x
🐘 PostgresNitro20.355s (-0.5%)21.033s (~)0.679s51.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)21.501s (-6.6% 🟢)22.056s (-7.8% 🟢)0.554s51.00x
▲ VercelNitro21.612s (-7.5% 🟢)22.218s (-7.2% 🟢)0.606s51.01x
▲ VercelExpress21.905s (-5.6% 🟢)22.830s (-6.1% 🟢)0.925s51.02x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.350s (-1.3%)2.008s (~)0.658s151.00x
🌐 RedisNext.js (Turbopack)1.365s (+0.5%)2.010s (~)0.645s151.01x
💻 LocalNext.js (Turbopack)1.381s (~)2.011s (~)0.631s151.02x
💻 LocalNitro1.404s (-1.9%)2.005s (~)0.601s151.04x
💻 LocalExpress1.415s (~)2.005s (~)0.590s151.05x
🐘 PostgresNext.js (Turbopack)1.673s (-12.1% 🟢)2.014s (-3.6%)0.341s151.24x
🐘 PostgresNitro2.107s (-10.7% 🟢)2.511s (-16.6% 🟢)0.403s121.56x
🌐 MongoDBNext.js (Turbopack)2.156s (+0.7%)3.012s (~)0.856s101.60x
🌐 TursoNext.js (Turbopack)2.188s (-1.7%)3.016s (~)0.828s101.62x
🐘 PostgresExpress2.469s (-6.9% 🟢)3.011s (~)0.542s101.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.725s (-27.8% 🟢)3.566s (-24.4% 🟢)0.841s91.00x
▲ VercelExpress2.848s (-32.4% 🟢)3.668s (-25.1% 🟢)0.820s91.05x
▲ VercelNitro7.179s (+60.5% 🔺)7.962s (+57.9% 🔺)0.784s72.63x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.150s (+1.8%)2.966s (-2.4%)0.816s111.00x
💻 LocalExpress2.212s (~)3.168s (~)0.955s101.03x
💻 LocalNitro2.247s (-1.0%)3.216s (~)0.969s101.05x
🐘 PostgresNitro2.351s (-20.7% 🟢)3.012s (-16.0% 🟢)0.660s101.09x
🌐 StarterNext.js (Turbopack)2.462s (~)3.009s (~)0.546s101.15x
🌐 RedisNext.js (Turbopack)2.492s (~)3.019s (~)0.527s101.16x
🐘 PostgresNext.js (Turbopack)2.688s (+3.6%)3.025s (-3.5%)0.338s101.25x
🐘 PostgresExpress2.915s (-3.3%)3.112s (-7.3% 🟢)0.197s101.36x
🌐 MongoDBNext.js (Turbopack)4.624s (-4.0%)5.179s (~)0.555s62.15x
🌐 TursoNext.js (Turbopack)4.775s (+1.2%)5.181s (~)0.407s62.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.337s (-9.1% 🟢)3.933s (-11.9% 🟢)0.595s81.00x
▲ VercelNext.js (Turbopack)3.362s (-6.3% 🟢)3.888s (-9.8% 🟢)0.525s81.01x
▲ VercelNitro4.012s (+5.4% 🔺)4.721s (-0.6%)0.709s71.20x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.355s (-1.1%)2.008s (~)0.653s151.00x
🌐 RedisNext.js (Turbopack)1.375s (-0.7%)2.011s (~)0.636s151.01x
💻 LocalNext.js (Turbopack)1.411s (+0.6%)2.014s (~)0.603s151.04x
💻 LocalExpress1.416s (~)2.006s (~)0.590s151.04x
💻 LocalNitro1.431s (~)2.006s (~)0.575s151.06x
🐘 PostgresNext.js (Turbopack)1.647s (-9.8% 🟢)2.014s (~)0.367s151.22x
🐘 PostgresNitro1.693s (-10.7% 🟢)2.010s (~)0.317s151.25x
🐘 PostgresExpress2.146s (+27.5% 🔺)2.926s (+45.6% 🔺)0.780s111.58x
🌐 MongoDBNext.js (Turbopack)2.156s (+0.6%)3.012s (~)0.856s101.59x
🌐 TursoNext.js (Turbopack)2.203s (~)3.013s (~)0.810s101.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.677s (-12.5% 🟢)3.659s (-0.7%)0.982s91.00x
▲ VercelNext.js (Turbopack)2.684s (-17.9% 🟢)3.652s (-12.7% 🟢)0.968s91.00x
▲ VercelNitro2.713s (-13.9% 🟢)3.603s (-8.1% 🟢)0.890s91.01x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.203s (~)3.111s (+1.3%)0.908s101.00x
💻 LocalExpress2.332s (+5.4% 🔺)3.213s (+1.4%)0.881s101.06x
💻 LocalNitro2.385s (+6.7% 🔺)3.261s (+1.9%)0.876s101.08x
🐘 PostgresNext.js (Turbopack)2.416s (-6.1% 🟢)3.027s (~)0.612s101.10x
🌐 StarterNext.js (Turbopack)2.466s (~)3.009s (~)0.542s101.12x
🌐 RedisNext.js (Turbopack)2.514s (+1.0%)3.010s (~)0.495s101.14x
🐘 PostgresNitro2.848s (+3.0%)3.021s (~)0.173s101.29x
🐘 PostgresExpress2.986s (+8.1% 🔺)3.356s (+11.3% 🔺)0.370s91.36x
🌐 TursoNext.js (Turbopack)4.750s (~)5.184s (~)0.434s62.16x
🌐 MongoDBNext.js (Turbopack)4.766s (+1.1%)5.178s (~)0.412s62.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.069s (+0.8%)3.652s (~)0.583s91.00x
▲ VercelNext.js (Turbopack)3.190s (-3.6%)3.777s (-1.4%)0.588s81.04x
▲ VercelNitro3.316s (+1.9%)3.925s (+1.8%)0.609s91.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.131s (~)1.005s (~)0.000s (+Infinity% 🔺)1.011s (~)0.879s101.00x
💻 LocalNext.js (Turbopack)0.142s (+2.2%)1.002s (~)0.019s (+16.3% 🔺)1.029s (~)0.887s101.08x
🌐 RedisNext.js (Turbopack)0.148s (+3.2%)1.005s (~)0.000s (+Infinity% 🔺)1.014s (~)0.866s101.13x
💻 LocalNitro0.175s (-5.4% 🟢)0.993s (~)0.015s (-6.2% 🟢)1.022s (~)0.847s101.33x
💻 LocalExpress0.177s (+2.5%)0.992s (~)0.015s (+4.9%)1.021s (~)0.844s101.35x
🌐 TursoNext.js (Turbopack)0.461s (-12.5% 🟢)0.991s (+6.9% 🔺)0.000s (+100.0% 🔺)1.013s (~)0.552s103.51x
🌐 MongoDBNext.js (Turbopack)0.513s (+13.5% 🔺)0.936s (-6.3% 🟢)0.000s (NaN%)1.013s (~)0.500s103.91x
🐘 PostgresNext.js (Turbopack)0.705s (-43.5% 🟢)0.834s (-53.7% 🟢)0.000s (NaN%)1.016s (-49.7% 🟢)0.310s105.37x
🐘 PostgresNitro2.371s (+4.1%)2.672s (-3.4%)0.000s (NaN%)3.015s (~)0.644s1018.06x
🐘 PostgresExpress2.374s (+10.9% 🔺)2.668s (-8.0% 🟢)0.000s (-100.0% 🟢)3.014s (~)0.640s1018.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.771s (-22.0% 🟢)3.209s (-18.8% 🟢)0.318s (-38.7% 🟢)3.935s (-21.1% 🟢)1.164s101.00x
▲ VercelNitro2.802s (-0.6%)3.226s (~)0.156s (-60.1% 🟢)3.851s (-9.0% 🟢)1.049s101.01x
▲ VercelExpress2.939s (-1.1%)3.306s (+2.0%)0.192s (-72.6% 🟢)4.037s (-8.7% 🟢)1.098s101.06x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)7/8
▲ VercelNext.js (Turbopack)3/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter5/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@TooTallNateGraphite App

Copy link
Copy Markdown
MemberAuthor

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vercel

vercelBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

Comment threadpackages/web-shared/src/api/workflow-server-actions.ts Outdated
Comment threadpackages/web/src/components/display-utils/health-check-button.tsx Outdated
Comment on lines +40 to +45
// Check env var directly in case it was set after the config was cached
// This is important for CLI tools that set the env var after module import
if (process.env.WORKFLOW_LOCAL_BASE_URL) {
return process.env.WORKFLOW_LOCAL_BASE_URL;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oof - good catch. also writing to process.env is really messy and prone to so many issues. we really need to clean this up @VaguelySerious

Comment threadpackages/cli/src/commands/health.ts

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The code is trying to access the error property on a ServerActionResult<HealthCheckResultWithLatency> type that only has a success property when success is true. This is a TypeScript type error where the property doesn't exist on the success case of the union type.

Fix on Vercel

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The code is attempting to access the error property on a ServerActionResult<HealthCheckResultWithLatency> type, but this property doesn't exist on the { success: true; data: HealthCheckResultWithLatency; } union member. This is a TypeScript type error.

Fix on Vercel

}
);

test(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Sign up for freeto 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.

3 participants

@TooTallNate@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Add workflow health CLI command and web functionality - #816

Merged
TooTallNate merged 15 commits into
mainfrom
01-20-add_workflow_health_cli_command_and_web_functionality
Jan 21, 2026
Merged

Add workflow health CLI command and web functionality#816
TooTallNate merged 15 commits into
mainfrom
01-20-add_workflow_health_cli_command_and_web_functionality

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Jan 20, 2026

Copy link
Copy Markdown
Member

Web:

Screenshot 2026-01-20 at 14 14 17

CLI:

Screenshot 2026-01-20 at 13 55 26

Added health check functionality to both the CLI and web UI to verify workflow and step endpoints are operational.

What changed?

  • Added a new workflow health CLI command that checks the health of workflow and step endpoints
  • Added a Health Check button in the web UI that performs queue-based health checks
  • Implemented server actions to support health checks from the web interface
  • Created shared types and utilities for health check functionality

How to test?

CLI:

# Check both endpoints
workflow health
# Check specific endpoint
workflow health --endpoint workflow
# Set custom timeout
workflow health --timeout 60000
# Get JSON output
workflow health --json

Web UI:

  • Click the new Health Check button in the top navigation bar
  • Toast notifications will display the results of the health check

Why make this change?

This feature helps users quickly verify if their workflow infrastructure is operational, especially in environments with Vercel Deployment Protection. The queue-based health checks bypass deployment protection to provide accurate status information about the underlying infrastructure. This is useful for troubleshooting and ensuring the system is functioning properly.

@changeset-bot

changeset-botBot commented Jan 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bc70b8c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/cliPatch
@workflow/world-localPatch
@workflow/buildersPatch
@workflow/docs-typecheckPatch
@workflow/nextPatch
@workflow/nitroPatch
workflowPatch
@workflow/world-testingPatch
@workflow/world-postgresPatch
@workflow/astroPatch
@workflow/sveltekitPatch
@workflow/nuxtPatch
@workflow/aiPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production446038484
✅ 💻 Local Development408032440
✅ 📦 Local Production408032440
✅ 🐘 Local Postgres408032440
✅ 🪟 Windows440044
❌ 🌍 Community Worlds165230188
Total1879231342036

❌ Failed Tests

🌍 Community Worlds (23 failed)

mongodb (1 failed):

  • webhookWorkflow

redis (1 failed):

  • webhookWorkflow

starter (20 failed):

  • addTenWorkflow
  • addTenWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE

turso (1 failed):

  • webhookWorkflow

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4004
✅ example4004
✅ express4004
✅ fastify4004
✅ hono4004
✅ nextjs-turbopack4301
✅ nextjs-webpack4301
✅ nitro4004
✅ nuxt4004
✅ sveltekit4004
✅ vite4004
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4400
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb4310
✅ redis-dev300
❌ redis4310
✅ starter-dev300
❌ starter24200
✅ turso-dev300
❌ turso4310

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.038s (-14.4% 🟢)1.015s (~)0.977s101.00x
🌐 StarterNext.js (Turbopack)0.041s (-3.3%)1.014s (~)0.973s101.08x
🌐 RedisNext.js (Turbopack)0.041s (~)1.017s (~)0.976s101.08x
💻 LocalNitro0.043s (-6.1% 🟢)1.006s (~)0.963s101.14x
💻 LocalExpress0.044s (-3.1%)1.007s (~)0.963s101.15x
🌐 TursoNext.js (Turbopack)0.106s (-2.8%)1.014s (~)0.908s102.78x
🌐 MongoDBNext.js (Turbopack)0.117s (+21.2% 🔺)1.014s (~)0.897s103.07x
🐘 PostgresNext.js (Turbopack)0.268s (+73.8% 🔺)1.020s (~)0.752s107.02x
🐘 PostgresNitro0.306s (+24.5% 🔺)1.012s (~)0.706s108.03x
🐘 PostgresExpress0.324s (~)1.013s (~)0.689s108.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.544s (-9.8% 🟢)1.409s (-10.8% 🟢)0.865s101.00x
▲ VercelExpress0.567s (-19.5% 🟢)1.511s (-9.7% 🟢)0.943s101.04x
▲ VercelNext.js (Turbopack)0.694s (-14.2% 🟢)1.574s (-14.1% 🟢)0.880s101.28x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.089s (~)2.010s (~)0.920s101.00x
💻 LocalNext.js (Turbopack)1.094s (~)2.011s (~)0.917s101.00x
🌐 RedisNext.js (Turbopack)1.098s (-0.9%)2.012s (~)0.914s101.01x
💻 LocalNitro1.113s (~)2.006s (~)0.893s101.02x
💻 LocalExpress1.115s (~)2.006s (~)0.891s101.02x
🌐 MongoDBNext.js (Turbopack)1.301s (~)2.014s (~)0.712s101.19x
🌐 TursoNext.js (Turbopack)1.312s (+1.3%)2.013s (~)0.701s101.20x
🐘 PostgresNext.js (Turbopack)1.597s (-17.8% 🟢)2.017s (~)0.420s101.47x
🐘 PostgresNitro2.186s (-0.6%)3.014s (~)0.828s102.01x
🐘 PostgresExpress2.192s (-10.2% 🟢)3.013s (~)0.821s102.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.714s (-5.6% 🟢)3.813s (+3.5%)1.099s101.00x
▲ VercelExpress2.896s (+4.1%)3.707s (+2.3%)0.811s101.07x
▲ VercelNext.js (Turbopack)3.014s (+4.0%)3.895s (+3.3%)0.880s101.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.600s (~)11.012s (~)0.412s51.00x
💻 LocalNext.js (Turbopack)10.659s (~)11.016s (~)0.357s51.01x
🌐 RedisNext.js (Turbopack)10.681s (~)11.019s (~)0.338s51.01x
💻 LocalNitro10.788s (~)11.013s (~)0.225s51.02x
💻 LocalExpress10.789s (~)11.015s (~)0.226s51.02x
🌐 TursoNext.js (Turbopack)12.200s (~)13.022s (~)0.822s51.15x
🌐 MongoDBNext.js (Turbopack)12.214s (~)13.026s (~)0.812s51.15x
🐘 PostgresNext.js (Turbopack)14.021s (-8.3% 🟢)14.435s (-10.0% 🟢)0.414s51.32x
🐘 PostgresExpress20.337s (~)21.029s (~)0.692s51.92x
🐘 PostgresNitro20.355s (-0.5%)21.033s (~)0.679s51.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)21.501s (-6.6% 🟢)22.056s (-7.8% 🟢)0.554s51.00x
▲ VercelNitro21.612s (-7.5% 🟢)22.218s (-7.2% 🟢)0.606s51.01x
▲ VercelExpress21.905s (-5.6% 🟢)22.830s (-6.1% 🟢)0.925s51.02x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.350s (-1.3%)2.008s (~)0.658s151.00x
🌐 RedisNext.js (Turbopack)1.365s (+0.5%)2.010s (~)0.645s151.01x
💻 LocalNext.js (Turbopack)1.381s (~)2.011s (~)0.631s151.02x
💻 LocalNitro1.404s (-1.9%)2.005s (~)0.601s151.04x
💻 LocalExpress1.415s (~)2.005s (~)0.590s151.05x
🐘 PostgresNext.js (Turbopack)1.673s (-12.1% 🟢)2.014s (-3.6%)0.341s151.24x
🐘 PostgresNitro2.107s (-10.7% 🟢)2.511s (-16.6% 🟢)0.403s121.56x
🌐 MongoDBNext.js (Turbopack)2.156s (+0.7%)3.012s (~)0.856s101.60x
🌐 TursoNext.js (Turbopack)2.188s (-1.7%)3.016s (~)0.828s101.62x
🐘 PostgresExpress2.469s (-6.9% 🟢)3.011s (~)0.542s101.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.725s (-27.8% 🟢)3.566s (-24.4% 🟢)0.841s91.00x
▲ VercelExpress2.848s (-32.4% 🟢)3.668s (-25.1% 🟢)0.820s91.05x
▲ VercelNitro7.179s (+60.5% 🔺)7.962s (+57.9% 🔺)0.784s72.63x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.150s (+1.8%)2.966s (-2.4%)0.816s111.00x
💻 LocalExpress2.212s (~)3.168s (~)0.955s101.03x
💻 LocalNitro2.247s (-1.0%)3.216s (~)0.969s101.05x
🐘 PostgresNitro2.351s (-20.7% 🟢)3.012s (-16.0% 🟢)0.660s101.09x
🌐 StarterNext.js (Turbopack)2.462s (~)3.009s (~)0.546s101.15x
🌐 RedisNext.js (Turbopack)2.492s (~)3.019s (~)0.527s101.16x
🐘 PostgresNext.js (Turbopack)2.688s (+3.6%)3.025s (-3.5%)0.338s101.25x
🐘 PostgresExpress2.915s (-3.3%)3.112s (-7.3% 🟢)0.197s101.36x
🌐 MongoDBNext.js (Turbopack)4.624s (-4.0%)5.179s (~)0.555s62.15x
🌐 TursoNext.js (Turbopack)4.775s (+1.2%)5.181s (~)0.407s62.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.337s (-9.1% 🟢)3.933s (-11.9% 🟢)0.595s81.00x
▲ VercelNext.js (Turbopack)3.362s (-6.3% 🟢)3.888s (-9.8% 🟢)0.525s81.01x
▲ VercelNitro4.012s (+5.4% 🔺)4.721s (-0.6%)0.709s71.20x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.355s (-1.1%)2.008s (~)0.653s151.00x
🌐 RedisNext.js (Turbopack)1.375s (-0.7%)2.011s (~)0.636s151.01x
💻 LocalNext.js (Turbopack)1.411s (+0.6%)2.014s (~)0.603s151.04x
💻 LocalExpress1.416s (~)2.006s (~)0.590s151.04x
💻 LocalNitro1.431s (~)2.006s (~)0.575s151.06x
🐘 PostgresNext.js (Turbopack)1.647s (-9.8% 🟢)2.014s (~)0.367s151.22x
🐘 PostgresNitro1.693s (-10.7% 🟢)2.010s (~)0.317s151.25x
🐘 PostgresExpress2.146s (+27.5% 🔺)2.926s (+45.6% 🔺)0.780s111.58x
🌐 MongoDBNext.js (Turbopack)2.156s (+0.6%)3.012s (~)0.856s101.59x
🌐 TursoNext.js (Turbopack)2.203s (~)3.013s (~)0.810s101.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.677s (-12.5% 🟢)3.659s (-0.7%)0.982s91.00x
▲ VercelNext.js (Turbopack)2.684s (-17.9% 🟢)3.652s (-12.7% 🟢)0.968s91.00x
▲ VercelNitro2.713s (-13.9% 🟢)3.603s (-8.1% 🟢)0.890s91.01x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.203s (~)3.111s (+1.3%)0.908s101.00x
💻 LocalExpress2.332s (+5.4% 🔺)3.213s (+1.4%)0.881s101.06x
💻 LocalNitro2.385s (+6.7% 🔺)3.261s (+1.9%)0.876s101.08x
🐘 PostgresNext.js (Turbopack)2.416s (-6.1% 🟢)3.027s (~)0.612s101.10x
🌐 StarterNext.js (Turbopack)2.466s (~)3.009s (~)0.542s101.12x
🌐 RedisNext.js (Turbopack)2.514s (+1.0%)3.010s (~)0.495s101.14x
🐘 PostgresNitro2.848s (+3.0%)3.021s (~)0.173s101.29x
🐘 PostgresExpress2.986s (+8.1% 🔺)3.356s (+11.3% 🔺)0.370s91.36x
🌐 TursoNext.js (Turbopack)4.750s (~)5.184s (~)0.434s62.16x
🌐 MongoDBNext.js (Turbopack)4.766s (+1.1%)5.178s (~)0.412s62.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.069s (+0.8%)3.652s (~)0.583s91.00x
▲ VercelNext.js (Turbopack)3.190s (-3.6%)3.777s (-1.4%)0.588s81.04x
▲ VercelNitro3.316s (+1.9%)3.925s (+1.8%)0.609s91.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.131s (~)1.005s (~)0.000s (+Infinity% 🔺)1.011s (~)0.879s101.00x
💻 LocalNext.js (Turbopack)0.142s (+2.2%)1.002s (~)0.019s (+16.3% 🔺)1.029s (~)0.887s101.08x
🌐 RedisNext.js (Turbopack)0.148s (+3.2%)1.005s (~)0.000s (+Infinity% 🔺)1.014s (~)0.866s101.13x
💻 LocalNitro0.175s (-5.4% 🟢)0.993s (~)0.015s (-6.2% 🟢)1.022s (~)0.847s101.33x
💻 LocalExpress0.177s (+2.5%)0.992s (~)0.015s (+4.9%)1.021s (~)0.844s101.35x
🌐 TursoNext.js (Turbopack)0.461s (-12.5% 🟢)0.991s (+6.9% 🔺)0.000s (+100.0% 🔺)1.013s (~)0.552s103.51x
🌐 MongoDBNext.js (Turbopack)0.513s (+13.5% 🔺)0.936s (-6.3% 🟢)0.000s (NaN%)1.013s (~)0.500s103.91x
🐘 PostgresNext.js (Turbopack)0.705s (-43.5% 🟢)0.834s (-53.7% 🟢)0.000s (NaN%)1.016s (-49.7% 🟢)0.310s105.37x
🐘 PostgresNitro2.371s (+4.1%)2.672s (-3.4%)0.000s (NaN%)3.015s (~)0.644s1018.06x
🐘 PostgresExpress2.374s (+10.9% 🔺)2.668s (-8.0% 🟢)0.000s (-100.0% 🟢)3.014s (~)0.640s1018.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.771s (-22.0% 🟢)3.209s (-18.8% 🟢)0.318s (-38.7% 🟢)3.935s (-21.1% 🟢)1.164s101.00x
▲ VercelNitro2.802s (-0.6%)3.226s (~)0.156s (-60.1% 🟢)3.851s (-9.0% 🟢)1.049s101.01x
▲ VercelExpress2.939s (-1.1%)3.306s (+2.0%)0.192s (-72.6% 🟢)4.037s (-8.7% 🟢)1.098s101.06x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)7/8
▲ VercelNext.js (Turbopack)3/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter5/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@TooTallNateGraphite App

Copy link
Copy Markdown
MemberAuthor

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vercel

vercelBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

Comment threadpackages/web-shared/src/api/workflow-server-actions.ts Outdated
Comment threadpackages/web/src/components/display-utils/health-check-button.tsx Outdated
Comment on lines +40 to +45
// Check env var directly in case it was set after the config was cached
// This is important for CLI tools that set the env var after module import
if (process.env.WORKFLOW_LOCAL_BASE_URL) {
return process.env.WORKFLOW_LOCAL_BASE_URL;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oof - good catch. also writing to process.env is really messy and prone to so many issues. we really need to clean this up @VaguelySerious

Comment threadpackages/cli/src/commands/health.ts

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The code is trying to access the error property on a ServerActionResult<HealthCheckResultWithLatency> type that only has a success property when success is true. This is a TypeScript type error where the property doesn't exist on the success case of the union type.

Fix on Vercel

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The code is attempting to access the error property on a ServerActionResult<HealthCheckResultWithLatency> type, but this property doesn't exist on the { success: true; data: HealthCheckResultWithLatency; } union member. This is a TypeScript type error.

Fix on Vercel

}
);

test(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Sign up for freeto 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.

3 participants

@TooTallNate@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Add workflow health CLI command and web functionality - #816

Merged
TooTallNate merged 15 commits into
mainfrom
01-20-add_workflow_health_cli_command_and_web_functionality
Jan 21, 2026
Merged

Add workflow health CLI command and web functionality#816
TooTallNate merged 15 commits into
mainfrom
01-20-add_workflow_health_cli_command_and_web_functionality

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Jan 20, 2026

Copy link
Copy Markdown
Member

Web:

Screenshot 2026-01-20 at 14 14 17

CLI:

Screenshot 2026-01-20 at 13 55 26

Added health check functionality to both the CLI and web UI to verify workflow and step endpoints are operational.

What changed?

  • Added a new workflow health CLI command that checks the health of workflow and step endpoints
  • Added a Health Check button in the web UI that performs queue-based health checks
  • Implemented server actions to support health checks from the web interface
  • Created shared types and utilities for health check functionality

How to test?

CLI:

# Check both endpoints
workflow health
# Check specific endpoint
workflow health --endpoint workflow
# Set custom timeout
workflow health --timeout 60000
# Get JSON output
workflow health --json

Web UI:

  • Click the new Health Check button in the top navigation bar
  • Toast notifications will display the results of the health check

Why make this change?

This feature helps users quickly verify if their workflow infrastructure is operational, especially in environments with Vercel Deployment Protection. The queue-based health checks bypass deployment protection to provide accurate status information about the underlying infrastructure. This is useful for troubleshooting and ensuring the system is functioning properly.

@changeset-bot

changeset-botBot commented Jan 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bc70b8c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/cliPatch
@workflow/world-localPatch
@workflow/buildersPatch
@workflow/docs-typecheckPatch
@workflow/nextPatch
@workflow/nitroPatch
workflowPatch
@workflow/world-testingPatch
@workflow/world-postgresPatch
@workflow/astroPatch
@workflow/sveltekitPatch
@workflow/nuxtPatch
@workflow/aiPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production446038484
✅ 💻 Local Development408032440
✅ 📦 Local Production408032440
✅ 🐘 Local Postgres408032440
✅ 🪟 Windows440044
❌ 🌍 Community Worlds165230188
Total1879231342036

❌ Failed Tests

🌍 Community Worlds (23 failed)

mongodb (1 failed):

  • webhookWorkflow

redis (1 failed):

  • webhookWorkflow

starter (20 failed):

  • addTenWorkflow
  • addTenWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE

turso (1 failed):

  • webhookWorkflow

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4004
✅ example4004
✅ express4004
✅ fastify4004
✅ hono4004
✅ nextjs-turbopack4301
✅ nextjs-webpack4301
✅ nitro4004
✅ nuxt4004
✅ sveltekit4004
✅ vite4004
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4400
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb4310
✅ redis-dev300
❌ redis4310
✅ starter-dev300
❌ starter24200
✅ turso-dev300
❌ turso4310

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.038s (-14.4% 🟢)1.015s (~)0.977s101.00x
🌐 StarterNext.js (Turbopack)0.041s (-3.3%)1.014s (~)0.973s101.08x
🌐 RedisNext.js (Turbopack)0.041s (~)1.017s (~)0.976s101.08x
💻 LocalNitro0.043s (-6.1% 🟢)1.006s (~)0.963s101.14x
💻 LocalExpress0.044s (-3.1%)1.007s (~)0.963s101.15x
🌐 TursoNext.js (Turbopack)0.106s (-2.8%)1.014s (~)0.908s102.78x
🌐 MongoDBNext.js (Turbopack)0.117s (+21.2% 🔺)1.014s (~)0.897s103.07x
🐘 PostgresNext.js (Turbopack)0.268s (+73.8% 🔺)1.020s (~)0.752s107.02x
🐘 PostgresNitro0.306s (+24.5% 🔺)1.012s (~)0.706s108.03x
🐘 PostgresExpress0.324s (~)1.013s (~)0.689s108.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.544s (-9.8% 🟢)1.409s (-10.8% 🟢)0.865s101.00x
▲ VercelExpress0.567s (-19.5% 🟢)1.511s (-9.7% 🟢)0.943s101.04x
▲ VercelNext.js (Turbopack)0.694s (-14.2% 🟢)1.574s (-14.1% 🟢)0.880s101.28x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.089s (~)2.010s (~)0.920s101.00x
💻 LocalNext.js (Turbopack)1.094s (~)2.011s (~)0.917s101.00x
🌐 RedisNext.js (Turbopack)1.098s (-0.9%)2.012s (~)0.914s101.01x
💻 LocalNitro1.113s (~)2.006s (~)0.893s101.02x
💻 LocalExpress1.115s (~)2.006s (~)0.891s101.02x
🌐 MongoDBNext.js (Turbopack)1.301s (~)2.014s (~)0.712s101.19x
🌐 TursoNext.js (Turbopack)1.312s (+1.3%)2.013s (~)0.701s101.20x
🐘 PostgresNext.js (Turbopack)1.597s (-17.8% 🟢)2.017s (~)0.420s101.47x
🐘 PostgresNitro2.186s (-0.6%)3.014s (~)0.828s102.01x
🐘 PostgresExpress2.192s (-10.2% 🟢)3.013s (~)0.821s102.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.714s (-5.6% 🟢)3.813s (+3.5%)1.099s101.00x
▲ VercelExpress2.896s (+4.1%)3.707s (+2.3%)0.811s101.07x
▲ VercelNext.js (Turbopack)3.014s (+4.0%)3.895s (+3.3%)0.880s101.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.600s (~)11.012s (~)0.412s51.00x
💻 LocalNext.js (Turbopack)10.659s (~)11.016s (~)0.357s51.01x
🌐 RedisNext.js (Turbopack)10.681s (~)11.019s (~)0.338s51.01x
💻 LocalNitro10.788s (~)11.013s (~)0.225s51.02x
💻 LocalExpress10.789s (~)11.015s (~)0.226s51.02x
🌐 TursoNext.js (Turbopack)12.200s (~)13.022s (~)0.822s51.15x
🌐 MongoDBNext.js (Turbopack)12.214s (~)13.026s (~)0.812s51.15x
🐘 PostgresNext.js (Turbopack)14.021s (-8.3% 🟢)14.435s (-10.0% 🟢)0.414s51.32x
🐘 PostgresExpress20.337s (~)21.029s (~)0.692s51.92x
🐘 PostgresNitro20.355s (-0.5%)21.033s (~)0.679s51.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)21.501s (-6.6% 🟢)22.056s (-7.8% 🟢)0.554s51.00x
▲ VercelNitro21.612s (-7.5% 🟢)22.218s (-7.2% 🟢)0.606s51.01x
▲ VercelExpress21.905s (-5.6% 🟢)22.830s (-6.1% 🟢)0.925s51.02x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.350s (-1.3%)2.008s (~)0.658s151.00x
🌐 RedisNext.js (Turbopack)1.365s (+0.5%)2.010s (~)0.645s151.01x
💻 LocalNext.js (Turbopack)1.381s (~)2.011s (~)0.631s151.02x
💻 LocalNitro1.404s (-1.9%)2.005s (~)0.601s151.04x
💻 LocalExpress1.415s (~)2.005s (~)0.590s151.05x
🐘 PostgresNext.js (Turbopack)1.673s (-12.1% 🟢)2.014s (-3.6%)0.341s151.24x
🐘 PostgresNitro2.107s (-10.7% 🟢)2.511s (-16.6% 🟢)0.403s121.56x
🌐 MongoDBNext.js (Turbopack)2.156s (+0.7%)3.012s (~)0.856s101.60x
🌐 TursoNext.js (Turbopack)2.188s (-1.7%)3.016s (~)0.828s101.62x
🐘 PostgresExpress2.469s (-6.9% 🟢)3.011s (~)0.542s101.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.725s (-27.8% 🟢)3.566s (-24.4% 🟢)0.841s91.00x
▲ VercelExpress2.848s (-32.4% 🟢)3.668s (-25.1% 🟢)0.820s91.05x
▲ VercelNitro7.179s (+60.5% 🔺)7.962s (+57.9% 🔺)0.784s72.63x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.150s (+1.8%)2.966s (-2.4%)0.816s111.00x
💻 LocalExpress2.212s (~)3.168s (~)0.955s101.03x
💻 LocalNitro2.247s (-1.0%)3.216s (~)0.969s101.05x
🐘 PostgresNitro2.351s (-20.7% 🟢)3.012s (-16.0% 🟢)0.660s101.09x
🌐 StarterNext.js (Turbopack)2.462s (~)3.009s (~)0.546s101.15x
🌐 RedisNext.js (Turbopack)2.492s (~)3.019s (~)0.527s101.16x
🐘 PostgresNext.js (Turbopack)2.688s (+3.6%)3.025s (-3.5%)0.338s101.25x
🐘 PostgresExpress2.915s (-3.3%)3.112s (-7.3% 🟢)0.197s101.36x
🌐 MongoDBNext.js (Turbopack)4.624s (-4.0%)5.179s (~)0.555s62.15x
🌐 TursoNext.js (Turbopack)4.775s (+1.2%)5.181s (~)0.407s62.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.337s (-9.1% 🟢)3.933s (-11.9% 🟢)0.595s81.00x
▲ VercelNext.js (Turbopack)3.362s (-6.3% 🟢)3.888s (-9.8% 🟢)0.525s81.01x
▲ VercelNitro4.012s (+5.4% 🔺)4.721s (-0.6%)0.709s71.20x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.355s (-1.1%)2.008s (~)0.653s151.00x
🌐 RedisNext.js (Turbopack)1.375s (-0.7%)2.011s (~)0.636s151.01x
💻 LocalNext.js (Turbopack)1.411s (+0.6%)2.014s (~)0.603s151.04x
💻 LocalExpress1.416s (~)2.006s (~)0.590s151.04x
💻 LocalNitro1.431s (~)2.006s (~)0.575s151.06x
🐘 PostgresNext.js (Turbopack)1.647s (-9.8% 🟢)2.014s (~)0.367s151.22x
🐘 PostgresNitro1.693s (-10.7% 🟢)2.010s (~)0.317s151.25x
🐘 PostgresExpress2.146s (+27.5% 🔺)2.926s (+45.6% 🔺)0.780s111.58x
🌐 MongoDBNext.js (Turbopack)2.156s (+0.6%)3.012s (~)0.856s101.59x
🌐 TursoNext.js (Turbopack)2.203s (~)3.013s (~)0.810s101.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.677s (-12.5% 🟢)3.659s (-0.7%)0.982s91.00x
▲ VercelNext.js (Turbopack)2.684s (-17.9% 🟢)3.652s (-12.7% 🟢)0.968s91.00x
▲ VercelNitro2.713s (-13.9% 🟢)3.603s (-8.1% 🟢)0.890s91.01x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.203s (~)3.111s (+1.3%)0.908s101.00x
💻 LocalExpress2.332s (+5.4% 🔺)3.213s (+1.4%)0.881s101.06x
💻 LocalNitro2.385s (+6.7% 🔺)3.261s (+1.9%)0.876s101.08x
🐘 PostgresNext.js (Turbopack)2.416s (-6.1% 🟢)3.027s (~)0.612s101.10x
🌐 StarterNext.js (Turbopack)2.466s (~)3.009s (~)0.542s101.12x
🌐 RedisNext.js (Turbopack)2.514s (+1.0%)3.010s (~)0.495s101.14x
🐘 PostgresNitro2.848s (+3.0%)3.021s (~)0.173s101.29x
🐘 PostgresExpress2.986s (+8.1% 🔺)3.356s (+11.3% 🔺)0.370s91.36x
🌐 TursoNext.js (Turbopack)4.750s (~)5.184s (~)0.434s62.16x
🌐 MongoDBNext.js (Turbopack)4.766s (+1.1%)5.178s (~)0.412s62.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.069s (+0.8%)3.652s (~)0.583s91.00x
▲ VercelNext.js (Turbopack)3.190s (-3.6%)3.777s (-1.4%)0.588s81.04x
▲ VercelNitro3.316s (+1.9%)3.925s (+1.8%)0.609s91.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.131s (~)1.005s (~)0.000s (+Infinity% 🔺)1.011s (~)0.879s101.00x
💻 LocalNext.js (Turbopack)0.142s (+2.2%)1.002s (~)0.019s (+16.3% 🔺)1.029s (~)0.887s101.08x
🌐 RedisNext.js (Turbopack)0.148s (+3.2%)1.005s (~)0.000s (+Infinity% 🔺)1.014s (~)0.866s101.13x
💻 LocalNitro0.175s (-5.4% 🟢)0.993s (~)0.015s (-6.2% 🟢)1.022s (~)0.847s101.33x
💻 LocalExpress0.177s (+2.5%)0.992s (~)0.015s (+4.9%)1.021s (~)0.844s101.35x
🌐 TursoNext.js (Turbopack)0.461s (-12.5% 🟢)0.991s (+6.9% 🔺)0.000s (+100.0% 🔺)1.013s (~)0.552s103.51x
🌐 MongoDBNext.js (Turbopack)0.513s (+13.5% 🔺)0.936s (-6.3% 🟢)0.000s (NaN%)1.013s (~)0.500s103.91x
🐘 PostgresNext.js (Turbopack)0.705s (-43.5% 🟢)0.834s (-53.7% 🟢)0.000s (NaN%)1.016s (-49.7% 🟢)0.310s105.37x
🐘 PostgresNitro2.371s (+4.1%)2.672s (-3.4%)0.000s (NaN%)3.015s (~)0.644s1018.06x
🐘 PostgresExpress2.374s (+10.9% 🔺)2.668s (-8.0% 🟢)0.000s (-100.0% 🟢)3.014s (~)0.640s1018.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.771s (-22.0% 🟢)3.209s (-18.8% 🟢)0.318s (-38.7% 🟢)3.935s (-21.1% 🟢)1.164s101.00x
▲ VercelNitro2.802s (-0.6%)3.226s (~)0.156s (-60.1% 🟢)3.851s (-9.0% 🟢)1.049s101.01x
▲ VercelExpress2.939s (-1.1%)3.306s (+2.0%)0.192s (-72.6% 🟢)4.037s (-8.7% 🟢)1.098s101.06x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)7/8
▲ VercelNext.js (Turbopack)3/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter5/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@TooTallNateGraphite App

Copy link
Copy Markdown
MemberAuthor

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vercel

vercelBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

Comment threadpackages/web-shared/src/api/workflow-server-actions.ts Outdated
Comment threadpackages/web/src/components/display-utils/health-check-button.tsx Outdated
Comment on lines +40 to +45
// Check env var directly in case it was set after the config was cached
// This is important for CLI tools that set the env var after module import
if (process.env.WORKFLOW_LOCAL_BASE_URL) {
return process.env.WORKFLOW_LOCAL_BASE_URL;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oof - good catch. also writing to process.env is really messy and prone to so many issues. we really need to clean this up @VaguelySerious

Comment threadpackages/cli/src/commands/health.ts

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The code is trying to access the error property on a ServerActionResult<HealthCheckResultWithLatency> type that only has a success property when success is true. This is a TypeScript type error where the property doesn't exist on the success case of the union type.

Fix on Vercel

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The code is attempting to access the error property on a ServerActionResult<HealthCheckResultWithLatency> type, but this property doesn't exist on the { success: true; data: HealthCheckResultWithLatency; } union member. This is a TypeScript type error.

Fix on Vercel

}
);

test(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Sign up for freeto 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.

3 participants

@TooTallNate@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Add workflow health CLI command and web functionality - #816

Merged
TooTallNate merged 15 commits into
mainfrom
01-20-add_workflow_health_cli_command_and_web_functionality
Jan 21, 2026
Merged

Add workflow health CLI command and web functionality#816
TooTallNate merged 15 commits into
mainfrom
01-20-add_workflow_health_cli_command_and_web_functionality

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Jan 20, 2026

Copy link
Copy Markdown
Member

Web:

Screenshot 2026-01-20 at 14 14 17

CLI:

Screenshot 2026-01-20 at 13 55 26

Added health check functionality to both the CLI and web UI to verify workflow and step endpoints are operational.

What changed?

  • Added a new workflow health CLI command that checks the health of workflow and step endpoints
  • Added a Health Check button in the web UI that performs queue-based health checks
  • Implemented server actions to support health checks from the web interface
  • Created shared types and utilities for health check functionality

How to test?

CLI:

# Check both endpoints
workflow health
# Check specific endpoint
workflow health --endpoint workflow
# Set custom timeout
workflow health --timeout 60000
# Get JSON output
workflow health --json

Web UI:

  • Click the new Health Check button in the top navigation bar
  • Toast notifications will display the results of the health check

Why make this change?

This feature helps users quickly verify if their workflow infrastructure is operational, especially in environments with Vercel Deployment Protection. The queue-based health checks bypass deployment protection to provide accurate status information about the underlying infrastructure. This is useful for troubleshooting and ensuring the system is functioning properly.

@changeset-bot

changeset-botBot commented Jan 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bc70b8c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/cliPatch
@workflow/world-localPatch
@workflow/buildersPatch
@workflow/docs-typecheckPatch
@workflow/nextPatch
@workflow/nitroPatch
workflowPatch
@workflow/world-testingPatch
@workflow/world-postgresPatch
@workflow/astroPatch
@workflow/sveltekitPatch
@workflow/nuxtPatch
@workflow/aiPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production446038484
✅ 💻 Local Development408032440
✅ 📦 Local Production408032440
✅ 🐘 Local Postgres408032440
✅ 🪟 Windows440044
❌ 🌍 Community Worlds165230188
Total1879231342036

❌ Failed Tests

🌍 Community Worlds (23 failed)

mongodb (1 failed):

  • webhookWorkflow

redis (1 failed):

  • webhookWorkflow

starter (20 failed):

  • addTenWorkflow
  • addTenWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE

turso (1 failed):

  • webhookWorkflow

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4004
✅ example4004
✅ express4004
✅ fastify4004
✅ hono4004
✅ nextjs-turbopack4301
✅ nextjs-webpack4301
✅ nitro4004
✅ nuxt4004
✅ sveltekit4004
✅ vite4004
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4400
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb4310
✅ redis-dev300
❌ redis4310
✅ starter-dev300
❌ starter24200
✅ turso-dev300
❌ turso4310

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.038s (-14.4% 🟢)1.015s (~)0.977s101.00x
🌐 StarterNext.js (Turbopack)0.041s (-3.3%)1.014s (~)0.973s101.08x
🌐 RedisNext.js (Turbopack)0.041s (~)1.017s (~)0.976s101.08x
💻 LocalNitro0.043s (-6.1% 🟢)1.006s (~)0.963s101.14x
💻 LocalExpress0.044s (-3.1%)1.007s (~)0.963s101.15x
🌐 TursoNext.js (Turbopack)0.106s (-2.8%)1.014s (~)0.908s102.78x
🌐 MongoDBNext.js (Turbopack)0.117s (+21.2% 🔺)1.014s (~)0.897s103.07x
🐘 PostgresNext.js (Turbopack)0.268s (+73.8% 🔺)1.020s (~)0.752s107.02x
🐘 PostgresNitro0.306s (+24.5% 🔺)1.012s (~)0.706s108.03x
🐘 PostgresExpress0.324s (~)1.013s (~)0.689s108.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.544s (-9.8% 🟢)1.409s (-10.8% 🟢)0.865s101.00x
▲ VercelExpress0.567s (-19.5% 🟢)1.511s (-9.7% 🟢)0.943s101.04x
▲ VercelNext.js (Turbopack)0.694s (-14.2% 🟢)1.574s (-14.1% 🟢)0.880s101.28x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.089s (~)2.010s (~)0.920s101.00x
💻 LocalNext.js (Turbopack)1.094s (~)2.011s (~)0.917s101.00x
🌐 RedisNext.js (Turbopack)1.098s (-0.9%)2.012s (~)0.914s101.01x
💻 LocalNitro1.113s (~)2.006s (~)0.893s101.02x
💻 LocalExpress1.115s (~)2.006s (~)0.891s101.02x
🌐 MongoDBNext.js (Turbopack)1.301s (~)2.014s (~)0.712s101.19x
🌐 TursoNext.js (Turbopack)1.312s (+1.3%)2.013s (~)0.701s101.20x
🐘 PostgresNext.js (Turbopack)1.597s (-17.8% 🟢)2.017s (~)0.420s101.47x
🐘 PostgresNitro2.186s (-0.6%)3.014s (~)0.828s102.01x
🐘 PostgresExpress2.192s (-10.2% 🟢)3.013s (~)0.821s102.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.714s (-5.6% 🟢)3.813s (+3.5%)1.099s101.00x
▲ VercelExpress2.896s (+4.1%)3.707s (+2.3%)0.811s101.07x
▲ VercelNext.js (Turbopack)3.014s (+4.0%)3.895s (+3.3%)0.880s101.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.600s (~)11.012s (~)0.412s51.00x
💻 LocalNext.js (Turbopack)10.659s (~)11.016s (~)0.357s51.01x
🌐 RedisNext.js (Turbopack)10.681s (~)11.019s (~)0.338s51.01x
💻 LocalNitro10.788s (~)11.013s (~)0.225s51.02x
💻 LocalExpress10.789s (~)11.015s (~)0.226s51.02x
🌐 TursoNext.js (Turbopack)12.200s (~)13.022s (~)0.822s51.15x
🌐 MongoDBNext.js (Turbopack)12.214s (~)13.026s (~)0.812s51.15x
🐘 PostgresNext.js (Turbopack)14.021s (-8.3% 🟢)14.435s (-10.0% 🟢)0.414s51.32x
🐘 PostgresExpress20.337s (~)21.029s (~)0.692s51.92x
🐘 PostgresNitro20.355s (-0.5%)21.033s (~)0.679s51.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)21.501s (-6.6% 🟢)22.056s (-7.8% 🟢)0.554s51.00x
▲ VercelNitro21.612s (-7.5% 🟢)22.218s (-7.2% 🟢)0.606s51.01x
▲ VercelExpress21.905s (-5.6% 🟢)22.830s (-6.1% 🟢)0.925s51.02x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.350s (-1.3%)2.008s (~)0.658s151.00x
🌐 RedisNext.js (Turbopack)1.365s (+0.5%)2.010s (~)0.645s151.01x
💻 LocalNext.js (Turbopack)1.381s (~)2.011s (~)0.631s151.02x
💻 LocalNitro1.404s (-1.9%)2.005s (~)0.601s151.04x
💻 LocalExpress1.415s (~)2.005s (~)0.590s151.05x
🐘 PostgresNext.js (Turbopack)1.673s (-12.1% 🟢)2.014s (-3.6%)0.341s151.24x
🐘 PostgresNitro2.107s (-10.7% 🟢)2.511s (-16.6% 🟢)0.403s121.56x
🌐 MongoDBNext.js (Turbopack)2.156s (+0.7%)3.012s (~)0.856s101.60x
🌐 TursoNext.js (Turbopack)2.188s (-1.7%)3.016s (~)0.828s101.62x
🐘 PostgresExpress2.469s (-6.9% 🟢)3.011s (~)0.542s101.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.725s (-27.8% 🟢)3.566s (-24.4% 🟢)0.841s91.00x
▲ VercelExpress2.848s (-32.4% 🟢)3.668s (-25.1% 🟢)0.820s91.05x
▲ VercelNitro7.179s (+60.5% 🔺)7.962s (+57.9% 🔺)0.784s72.63x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.150s (+1.8%)2.966s (-2.4%)0.816s111.00x
💻 LocalExpress2.212s (~)3.168s (~)0.955s101.03x
💻 LocalNitro2.247s (-1.0%)3.216s (~)0.969s101.05x
🐘 PostgresNitro2.351s (-20.7% 🟢)3.012s (-16.0% 🟢)0.660s101.09x
🌐 StarterNext.js (Turbopack)2.462s (~)3.009s (~)0.546s101.15x
🌐 RedisNext.js (Turbopack)2.492s (~)3.019s (~)0.527s101.16x
🐘 PostgresNext.js (Turbopack)2.688s (+3.6%)3.025s (-3.5%)0.338s101.25x
🐘 PostgresExpress2.915s (-3.3%)3.112s (-7.3% 🟢)0.197s101.36x
🌐 MongoDBNext.js (Turbopack)4.624s (-4.0%)5.179s (~)0.555s62.15x
🌐 TursoNext.js (Turbopack)4.775s (+1.2%)5.181s (~)0.407s62.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.337s (-9.1% 🟢)3.933s (-11.9% 🟢)0.595s81.00x
▲ VercelNext.js (Turbopack)3.362s (-6.3% 🟢)3.888s (-9.8% 🟢)0.525s81.01x
▲ VercelNitro4.012s (+5.4% 🔺)4.721s (-0.6%)0.709s71.20x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.355s (-1.1%)2.008s (~)0.653s151.00x
🌐 RedisNext.js (Turbopack)1.375s (-0.7%)2.011s (~)0.636s151.01x
💻 LocalNext.js (Turbopack)1.411s (+0.6%)2.014s (~)0.603s151.04x
💻 LocalExpress1.416s (~)2.006s (~)0.590s151.04x
💻 LocalNitro1.431s (~)2.006s (~)0.575s151.06x
🐘 PostgresNext.js (Turbopack)1.647s (-9.8% 🟢)2.014s (~)0.367s151.22x
🐘 PostgresNitro1.693s (-10.7% 🟢)2.010s (~)0.317s151.25x
🐘 PostgresExpress2.146s (+27.5% 🔺)2.926s (+45.6% 🔺)0.780s111.58x
🌐 MongoDBNext.js (Turbopack)2.156s (+0.6%)3.012s (~)0.856s101.59x
🌐 TursoNext.js (Turbopack)2.203s (~)3.013s (~)0.810s101.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.677s (-12.5% 🟢)3.659s (-0.7%)0.982s91.00x
▲ VercelNext.js (Turbopack)2.684s (-17.9% 🟢)3.652s (-12.7% 🟢)0.968s91.00x
▲ VercelNitro2.713s (-13.9% 🟢)3.603s (-8.1% 🟢)0.890s91.01x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.203s (~)3.111s (+1.3%)0.908s101.00x
💻 LocalExpress2.332s (+5.4% 🔺)3.213s (+1.4%)0.881s101.06x
💻 LocalNitro2.385s (+6.7% 🔺)3.261s (+1.9%)0.876s101.08x
🐘 PostgresNext.js (Turbopack)2.416s (-6.1% 🟢)3.027s (~)0.612s101.10x
🌐 StarterNext.js (Turbopack)2.466s (~)3.009s (~)0.542s101.12x
🌐 RedisNext.js (Turbopack)2.514s (+1.0%)3.010s (~)0.495s101.14x
🐘 PostgresNitro2.848s (+3.0%)3.021s (~)0.173s101.29x
🐘 PostgresExpress2.986s (+8.1% 🔺)3.356s (+11.3% 🔺)0.370s91.36x
🌐 TursoNext.js (Turbopack)4.750s (~)5.184s (~)0.434s62.16x
🌐 MongoDBNext.js (Turbopack)4.766s (+1.1%)5.178s (~)0.412s62.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.069s (+0.8%)3.652s (~)0.583s91.00x
▲ VercelNext.js (Turbopack)3.190s (-3.6%)3.777s (-1.4%)0.588s81.04x
▲ VercelNitro3.316s (+1.9%)3.925s (+1.8%)0.609s91.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.131s (~)1.005s (~)0.000s (+Infinity% 🔺)1.011s (~)0.879s101.00x
💻 LocalNext.js (Turbopack)0.142s (+2.2%)1.002s (~)0.019s (+16.3% 🔺)1.029s (~)0.887s101.08x
🌐 RedisNext.js (Turbopack)0.148s (+3.2%)1.005s (~)0.000s (+Infinity% 🔺)1.014s (~)0.866s101.13x
💻 LocalNitro0.175s (-5.4% 🟢)0.993s (~)0.015s (-6.2% 🟢)1.022s (~)0.847s101.33x
💻 LocalExpress0.177s (+2.5%)0.992s (~)0.015s (+4.9%)1.021s (~)0.844s101.35x
🌐 TursoNext.js (Turbopack)0.461s (-12.5% 🟢)0.991s (+6.9% 🔺)0.000s (+100.0% 🔺)1.013s (~)0.552s103.51x
🌐 MongoDBNext.js (Turbopack)0.513s (+13.5% 🔺)0.936s (-6.3% 🟢)0.000s (NaN%)1.013s (~)0.500s103.91x
🐘 PostgresNext.js (Turbopack)0.705s (-43.5% 🟢)0.834s (-53.7% 🟢)0.000s (NaN%)1.016s (-49.7% 🟢)0.310s105.37x
🐘 PostgresNitro2.371s (+4.1%)2.672s (-3.4%)0.000s (NaN%)3.015s (~)0.644s1018.06x
🐘 PostgresExpress2.374s (+10.9% 🔺)2.668s (-8.0% 🟢)0.000s (-100.0% 🟢)3.014s (~)0.640s1018.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.771s (-22.0% 🟢)3.209s (-18.8% 🟢)0.318s (-38.7% 🟢)3.935s (-21.1% 🟢)1.164s101.00x
▲ VercelNitro2.802s (-0.6%)3.226s (~)0.156s (-60.1% 🟢)3.851s (-9.0% 🟢)1.049s101.01x
▲ VercelExpress2.939s (-1.1%)3.306s (+2.0%)0.192s (-72.6% 🟢)4.037s (-8.7% 🟢)1.098s101.06x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)7/8
▲ VercelNext.js (Turbopack)3/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter5/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@TooTallNateGraphite App

Copy link
Copy Markdown
MemberAuthor

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vercel

vercelBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

Comment threadpackages/web-shared/src/api/workflow-server-actions.ts Outdated
Comment threadpackages/web/src/components/display-utils/health-check-button.tsx Outdated
Comment on lines +40 to +45
// Check env var directly in case it was set after the config was cached
// This is important for CLI tools that set the env var after module import
if (process.env.WORKFLOW_LOCAL_BASE_URL) {
return process.env.WORKFLOW_LOCAL_BASE_URL;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oof - good catch. also writing to process.env is really messy and prone to so many issues. we really need to clean this up @VaguelySerious

Comment threadpackages/cli/src/commands/health.ts

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The code is trying to access the error property on a ServerActionResult<HealthCheckResultWithLatency> type that only has a success property when success is true. This is a TypeScript type error where the property doesn't exist on the success case of the union type.

Fix on Vercel

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The code is attempting to access the error property on a ServerActionResult<HealthCheckResultWithLatency> type, but this property doesn't exist on the { success: true; data: HealthCheckResultWithLatency; } union member. This is a TypeScript type error.

Fix on Vercel

}
);

test(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Sign up for freeto 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.

3 participants

@TooTallNate@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Add workflow health CLI command and web functionality - #816

Merged
TooTallNate merged 15 commits into
mainfrom
01-20-add_workflow_health_cli_command_and_web_functionality
Jan 21, 2026
Merged

Add workflow health CLI command and web functionality#816
TooTallNate merged 15 commits into
mainfrom
01-20-add_workflow_health_cli_command_and_web_functionality

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Jan 20, 2026

Copy link
Copy Markdown
Member

Web:

Screenshot 2026-01-20 at 14 14 17

CLI:

Screenshot 2026-01-20 at 13 55 26

Added health check functionality to both the CLI and web UI to verify workflow and step endpoints are operational.

What changed?

  • Added a new workflow health CLI command that checks the health of workflow and step endpoints
  • Added a Health Check button in the web UI that performs queue-based health checks
  • Implemented server actions to support health checks from the web interface
  • Created shared types and utilities for health check functionality

How to test?

CLI:

# Check both endpoints
workflow health
# Check specific endpoint
workflow health --endpoint workflow
# Set custom timeout
workflow health --timeout 60000
# Get JSON output
workflow health --json

Web UI:

  • Click the new Health Check button in the top navigation bar
  • Toast notifications will display the results of the health check

Why make this change?

This feature helps users quickly verify if their workflow infrastructure is operational, especially in environments with Vercel Deployment Protection. The queue-based health checks bypass deployment protection to provide accurate status information about the underlying infrastructure. This is useful for troubleshooting and ensuring the system is functioning properly.

@changeset-bot

changeset-botBot commented Jan 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bc70b8c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/cliPatch
@workflow/world-localPatch
@workflow/buildersPatch
@workflow/docs-typecheckPatch
@workflow/nextPatch
@workflow/nitroPatch
workflowPatch
@workflow/world-testingPatch
@workflow/world-postgresPatch
@workflow/astroPatch
@workflow/sveltekitPatch
@workflow/nuxtPatch
@workflow/aiPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production446038484
✅ 💻 Local Development408032440
✅ 📦 Local Production408032440
✅ 🐘 Local Postgres408032440
✅ 🪟 Windows440044
❌ 🌍 Community Worlds165230188
Total1879231342036

❌ Failed Tests

🌍 Community Worlds (23 failed)

mongodb (1 failed):

  • webhookWorkflow

redis (1 failed):

  • webhookWorkflow

starter (20 failed):

  • addTenWorkflow
  • addTenWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE

turso (1 failed):

  • webhookWorkflow

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4004
✅ example4004
✅ express4004
✅ fastify4004
✅ hono4004
✅ nextjs-turbopack4301
✅ nextjs-webpack4301
✅ nitro4004
✅ nuxt4004
✅ sveltekit4004
✅ vite4004
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4400
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb4310
✅ redis-dev300
❌ redis4310
✅ starter-dev300
❌ starter24200
✅ turso-dev300
❌ turso4310

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.038s (-14.4% 🟢)1.015s (~)0.977s101.00x
🌐 StarterNext.js (Turbopack)0.041s (-3.3%)1.014s (~)0.973s101.08x
🌐 RedisNext.js (Turbopack)0.041s (~)1.017s (~)0.976s101.08x
💻 LocalNitro0.043s (-6.1% 🟢)1.006s (~)0.963s101.14x
💻 LocalExpress0.044s (-3.1%)1.007s (~)0.963s101.15x
🌐 TursoNext.js (Turbopack)0.106s (-2.8%)1.014s (~)0.908s102.78x
🌐 MongoDBNext.js (Turbopack)0.117s (+21.2% 🔺)1.014s (~)0.897s103.07x
🐘 PostgresNext.js (Turbopack)0.268s (+73.8% 🔺)1.020s (~)0.752s107.02x
🐘 PostgresNitro0.306s (+24.5% 🔺)1.012s (~)0.706s108.03x
🐘 PostgresExpress0.324s (~)1.013s (~)0.689s108.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.544s (-9.8% 🟢)1.409s (-10.8% 🟢)0.865s101.00x
▲ VercelExpress0.567s (-19.5% 🟢)1.511s (-9.7% 🟢)0.943s101.04x
▲ VercelNext.js (Turbopack)0.694s (-14.2% 🟢)1.574s (-14.1% 🟢)0.880s101.28x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.089s (~)2.010s (~)0.920s101.00x
💻 LocalNext.js (Turbopack)1.094s (~)2.011s (~)0.917s101.00x
🌐 RedisNext.js (Turbopack)1.098s (-0.9%)2.012s (~)0.914s101.01x
💻 LocalNitro1.113s (~)2.006s (~)0.893s101.02x
💻 LocalExpress1.115s (~)2.006s (~)0.891s101.02x
🌐 MongoDBNext.js (Turbopack)1.301s (~)2.014s (~)0.712s101.19x
🌐 TursoNext.js (Turbopack)1.312s (+1.3%)2.013s (~)0.701s101.20x
🐘 PostgresNext.js (Turbopack)1.597s (-17.8% 🟢)2.017s (~)0.420s101.47x
🐘 PostgresNitro2.186s (-0.6%)3.014s (~)0.828s102.01x
🐘 PostgresExpress2.192s (-10.2% 🟢)3.013s (~)0.821s102.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.714s (-5.6% 🟢)3.813s (+3.5%)1.099s101.00x
▲ VercelExpress2.896s (+4.1%)3.707s (+2.3%)0.811s101.07x
▲ VercelNext.js (Turbopack)3.014s (+4.0%)3.895s (+3.3%)0.880s101.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.600s (~)11.012s (~)0.412s51.00x
💻 LocalNext.js (Turbopack)10.659s (~)11.016s (~)0.357s51.01x
🌐 RedisNext.js (Turbopack)10.681s (~)11.019s (~)0.338s51.01x
💻 LocalNitro10.788s (~)11.013s (~)0.225s51.02x
💻 LocalExpress10.789s (~)11.015s (~)0.226s51.02x
🌐 TursoNext.js (Turbopack)12.200s (~)13.022s (~)0.822s51.15x
🌐 MongoDBNext.js (Turbopack)12.214s (~)13.026s (~)0.812s51.15x
🐘 PostgresNext.js (Turbopack)14.021s (-8.3% 🟢)14.435s (-10.0% 🟢)0.414s51.32x
🐘 PostgresExpress20.337s (~)21.029s (~)0.692s51.92x
🐘 PostgresNitro20.355s (-0.5%)21.033s (~)0.679s51.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)21.501s (-6.6% 🟢)22.056s (-7.8% 🟢)0.554s51.00x
▲ VercelNitro21.612s (-7.5% 🟢)22.218s (-7.2% 🟢)0.606s51.01x
▲ VercelExpress21.905s (-5.6% 🟢)22.830s (-6.1% 🟢)0.925s51.02x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.350s (-1.3%)2.008s (~)0.658s151.00x
🌐 RedisNext.js (Turbopack)1.365s (+0.5%)2.010s (~)0.645s151.01x
💻 LocalNext.js (Turbopack)1.381s (~)2.011s (~)0.631s151.02x
💻 LocalNitro1.404s (-1.9%)2.005s (~)0.601s151.04x
💻 LocalExpress1.415s (~)2.005s (~)0.590s151.05x
🐘 PostgresNext.js (Turbopack)1.673s (-12.1% 🟢)2.014s (-3.6%)0.341s151.24x
🐘 PostgresNitro2.107s (-10.7% 🟢)2.511s (-16.6% 🟢)0.403s121.56x
🌐 MongoDBNext.js (Turbopack)2.156s (+0.7%)3.012s (~)0.856s101.60x
🌐 TursoNext.js (Turbopack)2.188s (-1.7%)3.016s (~)0.828s101.62x
🐘 PostgresExpress2.469s (-6.9% 🟢)3.011s (~)0.542s101.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.725s (-27.8% 🟢)3.566s (-24.4% 🟢)0.841s91.00x
▲ VercelExpress2.848s (-32.4% 🟢)3.668s (-25.1% 🟢)0.820s91.05x
▲ VercelNitro7.179s (+60.5% 🔺)7.962s (+57.9% 🔺)0.784s72.63x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.150s (+1.8%)2.966s (-2.4%)0.816s111.00x
💻 LocalExpress2.212s (~)3.168s (~)0.955s101.03x
💻 LocalNitro2.247s (-1.0%)3.216s (~)0.969s101.05x
🐘 PostgresNitro2.351s (-20.7% 🟢)3.012s (-16.0% 🟢)0.660s101.09x
🌐 StarterNext.js (Turbopack)2.462s (~)3.009s (~)0.546s101.15x
🌐 RedisNext.js (Turbopack)2.492s (~)3.019s (~)0.527s101.16x
🐘 PostgresNext.js (Turbopack)2.688s (+3.6%)3.025s (-3.5%)0.338s101.25x
🐘 PostgresExpress2.915s (-3.3%)3.112s (-7.3% 🟢)0.197s101.36x
🌐 MongoDBNext.js (Turbopack)4.624s (-4.0%)5.179s (~)0.555s62.15x
🌐 TursoNext.js (Turbopack)4.775s (+1.2%)5.181s (~)0.407s62.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.337s (-9.1% 🟢)3.933s (-11.9% 🟢)0.595s81.00x
▲ VercelNext.js (Turbopack)3.362s (-6.3% 🟢)3.888s (-9.8% 🟢)0.525s81.01x
▲ VercelNitro4.012s (+5.4% 🔺)4.721s (-0.6%)0.709s71.20x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.355s (-1.1%)2.008s (~)0.653s151.00x
🌐 RedisNext.js (Turbopack)1.375s (-0.7%)2.011s (~)0.636s151.01x
💻 LocalNext.js (Turbopack)1.411s (+0.6%)2.014s (~)0.603s151.04x
💻 LocalExpress1.416s (~)2.006s (~)0.590s151.04x
💻 LocalNitro1.431s (~)2.006s (~)0.575s151.06x
🐘 PostgresNext.js (Turbopack)1.647s (-9.8% 🟢)2.014s (~)0.367s151.22x
🐘 PostgresNitro1.693s (-10.7% 🟢)2.010s (~)0.317s151.25x
🐘 PostgresExpress2.146s (+27.5% 🔺)2.926s (+45.6% 🔺)0.780s111.58x
🌐 MongoDBNext.js (Turbopack)2.156s (+0.6%)3.012s (~)0.856s101.59x
🌐 TursoNext.js (Turbopack)2.203s (~)3.013s (~)0.810s101.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.677s (-12.5% 🟢)3.659s (-0.7%)0.982s91.00x
▲ VercelNext.js (Turbopack)2.684s (-17.9% 🟢)3.652s (-12.7% 🟢)0.968s91.00x
▲ VercelNitro2.713s (-13.9% 🟢)3.603s (-8.1% 🟢)0.890s91.01x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.203s (~)3.111s (+1.3%)0.908s101.00x
💻 LocalExpress2.332s (+5.4% 🔺)3.213s (+1.4%)0.881s101.06x
💻 LocalNitro2.385s (+6.7% 🔺)3.261s (+1.9%)0.876s101.08x
🐘 PostgresNext.js (Turbopack)2.416s (-6.1% 🟢)3.027s (~)0.612s101.10x
🌐 StarterNext.js (Turbopack)2.466s (~)3.009s (~)0.542s101.12x
🌐 RedisNext.js (Turbopack)2.514s (+1.0%)3.010s (~)0.495s101.14x
🐘 PostgresNitro2.848s (+3.0%)3.021s (~)0.173s101.29x
🐘 PostgresExpress2.986s (+8.1% 🔺)3.356s (+11.3% 🔺)0.370s91.36x
🌐 TursoNext.js (Turbopack)4.750s (~)5.184s (~)0.434s62.16x
🌐 MongoDBNext.js (Turbopack)4.766s (+1.1%)5.178s (~)0.412s62.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.069s (+0.8%)3.652s (~)0.583s91.00x
▲ VercelNext.js (Turbopack)3.190s (-3.6%)3.777s (-1.4%)0.588s81.04x
▲ VercelNitro3.316s (+1.9%)3.925s (+1.8%)0.609s91.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.131s (~)1.005s (~)0.000s (+Infinity% 🔺)1.011s (~)0.879s101.00x
💻 LocalNext.js (Turbopack)0.142s (+2.2%)1.002s (~)0.019s (+16.3% 🔺)1.029s (~)0.887s101.08x
🌐 RedisNext.js (Turbopack)0.148s (+3.2%)1.005s (~)0.000s (+Infinity% 🔺)1.014s (~)0.866s101.13x
💻 LocalNitro0.175s (-5.4% 🟢)0.993s (~)0.015s (-6.2% 🟢)1.022s (~)0.847s101.33x
💻 LocalExpress0.177s (+2.5%)0.992s (~)0.015s (+4.9%)1.021s (~)0.844s101.35x
🌐 TursoNext.js (Turbopack)0.461s (-12.5% 🟢)0.991s (+6.9% 🔺)0.000s (+100.0% 🔺)1.013s (~)0.552s103.51x
🌐 MongoDBNext.js (Turbopack)0.513s (+13.5% 🔺)0.936s (-6.3% 🟢)0.000s (NaN%)1.013s (~)0.500s103.91x
🐘 PostgresNext.js (Turbopack)0.705s (-43.5% 🟢)0.834s (-53.7% 🟢)0.000s (NaN%)1.016s (-49.7% 🟢)0.310s105.37x
🐘 PostgresNitro2.371s (+4.1%)2.672s (-3.4%)0.000s (NaN%)3.015s (~)0.644s1018.06x
🐘 PostgresExpress2.374s (+10.9% 🔺)2.668s (-8.0% 🟢)0.000s (-100.0% 🟢)3.014s (~)0.640s1018.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.771s (-22.0% 🟢)3.209s (-18.8% 🟢)0.318s (-38.7% 🟢)3.935s (-21.1% 🟢)1.164s101.00x
▲ VercelNitro2.802s (-0.6%)3.226s (~)0.156s (-60.1% 🟢)3.851s (-9.0% 🟢)1.049s101.01x
▲ VercelExpress2.939s (-1.1%)3.306s (+2.0%)0.192s (-72.6% 🟢)4.037s (-8.7% 🟢)1.098s101.06x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)7/8
▲ VercelNext.js (Turbopack)3/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter5/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@TooTallNateGraphite App

Copy link
Copy Markdown
MemberAuthor

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vercel

vercelBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

Comment threadpackages/web-shared/src/api/workflow-server-actions.ts Outdated
Comment threadpackages/web/src/components/display-utils/health-check-button.tsx Outdated
Comment on lines +40 to +45
// Check env var directly in case it was set after the config was cached
// This is important for CLI tools that set the env var after module import
if (process.env.WORKFLOW_LOCAL_BASE_URL) {
return process.env.WORKFLOW_LOCAL_BASE_URL;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oof - good catch. also writing to process.env is really messy and prone to so many issues. we really need to clean this up @VaguelySerious

Comment threadpackages/cli/src/commands/health.ts

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The code is trying to access the error property on a ServerActionResult<HealthCheckResultWithLatency> type that only has a success property when success is true. This is a TypeScript type error where the property doesn't exist on the success case of the union type.

Fix on Vercel

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The code is attempting to access the error property on a ServerActionResult<HealthCheckResultWithLatency> type, but this property doesn't exist on the { success: true; data: HealthCheckResultWithLatency; } union member. This is a TypeScript type error.

Fix on Vercel

}
);

test(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Sign up for freeto 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.

3 participants

@TooTallNate@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Add workflow health CLI command and web functionality - #816

Merged
TooTallNate merged 15 commits into
mainfrom
01-20-add_workflow_health_cli_command_and_web_functionality
Jan 21, 2026
Merged

Add workflow health CLI command and web functionality#816
TooTallNate merged 15 commits into
mainfrom
01-20-add_workflow_health_cli_command_and_web_functionality

Conversation

@TooTallNate

@TooTallNateTooTallNate commented Jan 20, 2026

Copy link
Copy Markdown
Member

Web:

Screenshot 2026-01-20 at 14 14 17

CLI:

Screenshot 2026-01-20 at 13 55 26

Added health check functionality to both the CLI and web UI to verify workflow and step endpoints are operational.

What changed?

  • Added a new workflow health CLI command that checks the health of workflow and step endpoints
  • Added a Health Check button in the web UI that performs queue-based health checks
  • Implemented server actions to support health checks from the web interface
  • Created shared types and utilities for health check functionality

How to test?

CLI:

# Check both endpoints
workflow health
# Check specific endpoint
workflow health --endpoint workflow
# Set custom timeout
workflow health --timeout 60000
# Get JSON output
workflow health --json

Web UI:

  • Click the new Health Check button in the top navigation bar
  • Toast notifications will display the results of the health check

Why make this change?

This feature helps users quickly verify if their workflow infrastructure is operational, especially in environments with Vercel Deployment Protection. The queue-based health checks bypass deployment protection to provide accurate status information about the underlying infrastructure. This is useful for troubleshooting and ensuring the system is functioning properly.

@changeset-bot

changeset-botBot commented Jan 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bc70b8c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/cliPatch
@workflow/world-localPatch
@workflow/buildersPatch
@workflow/docs-typecheckPatch
@workflow/nextPatch
@workflow/nitroPatch
workflowPatch
@workflow/world-testingPatch
@workflow/world-postgresPatch
@workflow/astroPatch
@workflow/sveltekitPatch
@workflow/nuxtPatch
@workflow/aiPatch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actionsBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production446038484
✅ 💻 Local Development408032440
✅ 📦 Local Production408032440
✅ 🐘 Local Postgres408032440
✅ 🪟 Windows440044
❌ 🌍 Community Worlds165230188
Total1879231342036

❌ Failed Tests

🌍 Community Worlds (23 failed)

mongodb (1 failed):

  • webhookWorkflow

redis (1 failed):

  • webhookWorkflow

starter (20 failed):

  • addTenWorkflow
  • addTenWorkflow
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE

turso (1 failed):

  • webhookWorkflow

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro4004
✅ example4004
✅ express4004
✅ fastify4004
✅ hono4004
✅ nextjs-turbopack4301
✅ nextjs-webpack4301
✅ nitro4004
✅ nuxt4004
✅ sveltekit4004
✅ vite4004
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable4004
✅ express-stable4004
✅ fastify-stable4004
✅ hono-stable4004
✅ nextjs-turbopack-stable4400
✅ nextjs-webpack-stable4400
✅ nitro-stable4004
✅ nuxt-stable4004
✅ sveltekit-stable4004
✅ vite-stable4004
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack4400
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev300
❌ mongodb4310
✅ redis-dev300
❌ redis4310
✅ starter-dev300
❌ starter24200
✅ turso-dev300
❌ turso4310

📋 View full workflow run

@github-actions

github-actionsBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.038s (-14.4% 🟢)1.015s (~)0.977s101.00x
🌐 StarterNext.js (Turbopack)0.041s (-3.3%)1.014s (~)0.973s101.08x
🌐 RedisNext.js (Turbopack)0.041s (~)1.017s (~)0.976s101.08x
💻 LocalNitro0.043s (-6.1% 🟢)1.006s (~)0.963s101.14x
💻 LocalExpress0.044s (-3.1%)1.007s (~)0.963s101.15x
🌐 TursoNext.js (Turbopack)0.106s (-2.8%)1.014s (~)0.908s102.78x
🌐 MongoDBNext.js (Turbopack)0.117s (+21.2% 🔺)1.014s (~)0.897s103.07x
🐘 PostgresNext.js (Turbopack)0.268s (+73.8% 🔺)1.020s (~)0.752s107.02x
🐘 PostgresNitro0.306s (+24.5% 🔺)1.012s (~)0.706s108.03x
🐘 PostgresExpress0.324s (~)1.013s (~)0.689s108.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.544s (-9.8% 🟢)1.409s (-10.8% 🟢)0.865s101.00x
▲ VercelExpress0.567s (-19.5% 🟢)1.511s (-9.7% 🟢)0.943s101.04x
▲ VercelNext.js (Turbopack)0.694s (-14.2% 🟢)1.574s (-14.1% 🟢)0.880s101.28x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.089s (~)2.010s (~)0.920s101.00x
💻 LocalNext.js (Turbopack)1.094s (~)2.011s (~)0.917s101.00x
🌐 RedisNext.js (Turbopack)1.098s (-0.9%)2.012s (~)0.914s101.01x
💻 LocalNitro1.113s (~)2.006s (~)0.893s101.02x
💻 LocalExpress1.115s (~)2.006s (~)0.891s101.02x
🌐 MongoDBNext.js (Turbopack)1.301s (~)2.014s (~)0.712s101.19x
🌐 TursoNext.js (Turbopack)1.312s (+1.3%)2.013s (~)0.701s101.20x
🐘 PostgresNext.js (Turbopack)1.597s (-17.8% 🟢)2.017s (~)0.420s101.47x
🐘 PostgresNitro2.186s (-0.6%)3.014s (~)0.828s102.01x
🐘 PostgresExpress2.192s (-10.2% 🟢)3.013s (~)0.821s102.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.714s (-5.6% 🟢)3.813s (+3.5%)1.099s101.00x
▲ VercelExpress2.896s (+4.1%)3.707s (+2.3%)0.811s101.07x
▲ VercelNext.js (Turbopack)3.014s (+4.0%)3.895s (+3.3%)0.880s101.11x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)10.600s (~)11.012s (~)0.412s51.00x
💻 LocalNext.js (Turbopack)10.659s (~)11.016s (~)0.357s51.01x
🌐 RedisNext.js (Turbopack)10.681s (~)11.019s (~)0.338s51.01x
💻 LocalNitro10.788s (~)11.013s (~)0.225s51.02x
💻 LocalExpress10.789s (~)11.015s (~)0.226s51.02x
🌐 TursoNext.js (Turbopack)12.200s (~)13.022s (~)0.822s51.15x
🌐 MongoDBNext.js (Turbopack)12.214s (~)13.026s (~)0.812s51.15x
🐘 PostgresNext.js (Turbopack)14.021s (-8.3% 🟢)14.435s (-10.0% 🟢)0.414s51.32x
🐘 PostgresExpress20.337s (~)21.029s (~)0.692s51.92x
🐘 PostgresNitro20.355s (-0.5%)21.033s (~)0.679s51.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)21.501s (-6.6% 🟢)22.056s (-7.8% 🟢)0.554s51.00x
▲ VercelNitro21.612s (-7.5% 🟢)22.218s (-7.2% 🟢)0.606s51.01x
▲ VercelExpress21.905s (-5.6% 🟢)22.830s (-6.1% 🟢)0.925s51.02x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.350s (-1.3%)2.008s (~)0.658s151.00x
🌐 RedisNext.js (Turbopack)1.365s (+0.5%)2.010s (~)0.645s151.01x
💻 LocalNext.js (Turbopack)1.381s (~)2.011s (~)0.631s151.02x
💻 LocalNitro1.404s (-1.9%)2.005s (~)0.601s151.04x
💻 LocalExpress1.415s (~)2.005s (~)0.590s151.05x
🐘 PostgresNext.js (Turbopack)1.673s (-12.1% 🟢)2.014s (-3.6%)0.341s151.24x
🐘 PostgresNitro2.107s (-10.7% 🟢)2.511s (-16.6% 🟢)0.403s121.56x
🌐 MongoDBNext.js (Turbopack)2.156s (+0.7%)3.012s (~)0.856s101.60x
🌐 TursoNext.js (Turbopack)2.188s (-1.7%)3.016s (~)0.828s101.62x
🐘 PostgresExpress2.469s (-6.9% 🟢)3.011s (~)0.542s101.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.725s (-27.8% 🟢)3.566s (-24.4% 🟢)0.841s91.00x
▲ VercelExpress2.848s (-32.4% 🟢)3.668s (-25.1% 🟢)0.820s91.05x
▲ VercelNitro7.179s (+60.5% 🔺)7.962s (+57.9% 🔺)0.784s72.63x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.150s (+1.8%)2.966s (-2.4%)0.816s111.00x
💻 LocalExpress2.212s (~)3.168s (~)0.955s101.03x
💻 LocalNitro2.247s (-1.0%)3.216s (~)0.969s101.05x
🐘 PostgresNitro2.351s (-20.7% 🟢)3.012s (-16.0% 🟢)0.660s101.09x
🌐 StarterNext.js (Turbopack)2.462s (~)3.009s (~)0.546s101.15x
🌐 RedisNext.js (Turbopack)2.492s (~)3.019s (~)0.527s101.16x
🐘 PostgresNext.js (Turbopack)2.688s (+3.6%)3.025s (-3.5%)0.338s101.25x
🐘 PostgresExpress2.915s (-3.3%)3.112s (-7.3% 🟢)0.197s101.36x
🌐 MongoDBNext.js (Turbopack)4.624s (-4.0%)5.179s (~)0.555s62.15x
🌐 TursoNext.js (Turbopack)4.775s (+1.2%)5.181s (~)0.407s62.22x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.337s (-9.1% 🟢)3.933s (-11.9% 🟢)0.595s81.00x
▲ VercelNext.js (Turbopack)3.362s (-6.3% 🟢)3.888s (-9.8% 🟢)0.525s81.01x
▲ VercelNitro4.012s (+5.4% 🔺)4.721s (-0.6%)0.709s71.20x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)1.355s (-1.1%)2.008s (~)0.653s151.00x
🌐 RedisNext.js (Turbopack)1.375s (-0.7%)2.011s (~)0.636s151.01x
💻 LocalNext.js (Turbopack)1.411s (+0.6%)2.014s (~)0.603s151.04x
💻 LocalExpress1.416s (~)2.006s (~)0.590s151.04x
💻 LocalNitro1.431s (~)2.006s (~)0.575s151.06x
🐘 PostgresNext.js (Turbopack)1.647s (-9.8% 🟢)2.014s (~)0.367s151.22x
🐘 PostgresNitro1.693s (-10.7% 🟢)2.010s (~)0.317s151.25x
🐘 PostgresExpress2.146s (+27.5% 🔺)2.926s (+45.6% 🔺)0.780s111.58x
🌐 MongoDBNext.js (Turbopack)2.156s (+0.6%)3.012s (~)0.856s101.59x
🌐 TursoNext.js (Turbopack)2.203s (~)3.013s (~)0.810s101.63x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.677s (-12.5% 🟢)3.659s (-0.7%)0.982s91.00x
▲ VercelNext.js (Turbopack)2.684s (-17.9% 🟢)3.652s (-12.7% 🟢)0.968s91.00x
▲ VercelNitro2.713s (-13.9% 🟢)3.603s (-8.1% 🟢)0.890s91.01x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)2.203s (~)3.111s (+1.3%)0.908s101.00x
💻 LocalExpress2.332s (+5.4% 🔺)3.213s (+1.4%)0.881s101.06x
💻 LocalNitro2.385s (+6.7% 🔺)3.261s (+1.9%)0.876s101.08x
🐘 PostgresNext.js (Turbopack)2.416s (-6.1% 🟢)3.027s (~)0.612s101.10x
🌐 StarterNext.js (Turbopack)2.466s (~)3.009s (~)0.542s101.12x
🌐 RedisNext.js (Turbopack)2.514s (+1.0%)3.010s (~)0.495s101.14x
🐘 PostgresNitro2.848s (+3.0%)3.021s (~)0.173s101.29x
🐘 PostgresExpress2.986s (+8.1% 🔺)3.356s (+11.3% 🔺)0.370s91.36x
🌐 TursoNext.js (Turbopack)4.750s (~)5.184s (~)0.434s62.16x
🌐 MongoDBNext.js (Turbopack)4.766s (+1.1%)5.178s (~)0.412s62.16x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.069s (+0.8%)3.652s (~)0.583s91.00x
▲ VercelNext.js (Turbopack)3.190s (-3.6%)3.777s (-1.4%)0.588s81.04x
▲ VercelNitro3.316s (+1.9%)3.925s (+1.8%)0.609s91.08x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Starter🥇 Next.js (Turbopack)0.131s (~)1.005s (~)0.000s (+Infinity% 🔺)1.011s (~)0.879s101.00x
💻 LocalNext.js (Turbopack)0.142s (+2.2%)1.002s (~)0.019s (+16.3% 🔺)1.029s (~)0.887s101.08x
🌐 RedisNext.js (Turbopack)0.148s (+3.2%)1.005s (~)0.000s (+Infinity% 🔺)1.014s (~)0.866s101.13x
💻 LocalNitro0.175s (-5.4% 🟢)0.993s (~)0.015s (-6.2% 🟢)1.022s (~)0.847s101.33x
💻 LocalExpress0.177s (+2.5%)0.992s (~)0.015s (+4.9%)1.021s (~)0.844s101.35x
🌐 TursoNext.js (Turbopack)0.461s (-12.5% 🟢)0.991s (+6.9% 🔺)0.000s (+100.0% 🔺)1.013s (~)0.552s103.51x
🌐 MongoDBNext.js (Turbopack)0.513s (+13.5% 🔺)0.936s (-6.3% 🟢)0.000s (NaN%)1.013s (~)0.500s103.91x
🐘 PostgresNext.js (Turbopack)0.705s (-43.5% 🟢)0.834s (-53.7% 🟢)0.000s (NaN%)1.016s (-49.7% 🟢)0.310s105.37x
🐘 PostgresNitro2.371s (+4.1%)2.672s (-3.4%)0.000s (NaN%)3.015s (~)0.644s1018.06x
🐘 PostgresExpress2.374s (+10.9% 🔺)2.668s (-8.0% 🟢)0.000s (-100.0% 🟢)3.014s (~)0.640s1018.08x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)2.771s (-22.0% 🟢)3.209s (-18.8% 🟢)0.318s (-38.7% 🟢)3.935s (-21.1% 🟢)1.164s101.00x
▲ VercelNitro2.802s (-0.6%)3.226s (~)0.156s (-60.1% 🟢)3.851s (-9.0% 🟢)1.049s101.01x
▲ VercelExpress2.939s (-1.1%)3.306s (+2.0%)0.192s (-72.6% 🟢)4.037s (-8.7% 🟢)1.098s101.06x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)8/8
🐘 PostgresNext.js (Turbopack)7/8
▲ VercelNext.js (Turbopack)3/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express💻 Local8/8
Next.js (Turbopack)🌐 Starter5/8
Nitro💻 Local8/8
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@TooTallNateGraphite App

Copy link
Copy Markdown
MemberAuthor

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vercel

vercelBot commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

Comment threadpackages/web-shared/src/api/workflow-server-actions.ts Outdated
Comment threadpackages/web/src/components/display-utils/health-check-button.tsx Outdated
Comment on lines +40 to +45
// Check env var directly in case it was set after the config was cached
// This is important for CLI tools that set the env var after module import
if (process.env.WORKFLOW_LOCAL_BASE_URL) {
return process.env.WORKFLOW_LOCAL_BASE_URL;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oof - good catch. also writing to process.env is really messy and prone to so many issues. we really need to clean this up @VaguelySerious

Comment threadpackages/cli/src/commands/health.ts

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The code is trying to access the error property on a ServerActionResult<HealthCheckResultWithLatency> type that only has a success property when success is true. This is a TypeScript type error where the property doesn't exist on the success case of the union type.

Fix on Vercel

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Build Fix:

The code is attempting to access the error property on a ServerActionResult<HealthCheckResultWithLatency> type, but this property doesn't exist on the { success: true; data: HealthCheckResultWithLatency; } union member. This is a TypeScript type error.

Fix on Vercel

}
);

test(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Sign up for freeto 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.

3 participants

@TooTallNate@pranaygp