Skip to content

AIW-3 | Replace crons with sleeping workflow#18

Closed
woywro wants to merge 1 commit into
mainfrom
reland-AIW-3
Closed

AIW-3 | Replace crons with sleeping workflow#18
woywro wants to merge 1 commit into
mainfrom
reland-AIW-3

Conversation

@woywro
Copy link
Copy Markdown
Collaborator

@woywro woywro commented Mar 24, 2026

Summary

Re-lands the AIW-3 changes that were reverted in #17.

  • Replaces the Vercel Cron-based poller (/cron/poll) with a long-lived Vercel Workflow (src/workflows/poll.ts) that sleeps between cycles
  • Adds GET /poll/start route that cancels any existing poll run and starts a fresh one, protected by DEPLOY_HOOK_SECRET
  • Adds GitHub Action (.github/workflows/post-deploy.yml) to trigger the poll workflow on every successful deployment
  • Renames CRON_SECRETDEPLOY_HOOK_SECRET, changes default POLL_INTERVAL_MS from 5min to 15s
  • Updates spec and vercel.json accordingly

Test plan

  • Unit tests for /poll/start route
  • Verify deployment triggers GitHub Action and starts poll workflow
  • Confirm poll workflow discovers tickets and dispatches child workflows

🤖 Generated with Claude Code

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 24, 2026

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

Project Deployment Actions Updated (UTC)
ai-workflow-app Ready Ready Preview, Comment Mar 24, 2026 10:35am
ai-workflow-mdcms Ready Ready Preview, Comment Mar 24, 2026 10:35am

Request Review

@woywro woywro changed the title feat: migrate polling from Vercel Cron to Workflow (reland) AIW-3/Replace crons with sleeping workflow Mar 24, 2026
@woywro woywro changed the title AIW-3/Replace crons with sleeping workflow AIW-3 | Replace crons with sleeping workflow Mar 24, 2026
@woywro woywro closed this Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant