News Developer Tools

Vercel Schedules lets agents create and cancel cron tasks live

Vercel Schedules lets agents and apps create, change or cancel one-time and recurring tasks through code, delivering due work to apps via Queues.

Vercel has launched Vercel Schedules, a service that lets agents and applications create, change or cancel one-time and recurring schedules through code without redeploying. Vercel says it extends its Cron Jobs, which are tasks that run at set times, such as database backups or data syncs between two systems.

Cron Jobs are defined once in code, and changing them means editing configuration and redeploying. Vercel says agents now interact with users as work evolves, so schedules must change in real time. A schedule tells Vercel when to trigger a task and where to send it, while the application supplies the code that does the work.

Schedules come in two kinds. Static schedules keep timing in project configuration and sync on deployment. They can call private functions or HTTP paths, or send messages to Queue topics. Dynamic schedules are created and managed while an app runs, through a JavaScript SDK, a command-line tool or an API, and they handle one-time and recurring work through Queue topics.

Vercel gives an example in which a user asks an agent to summarize the top five Hacker News stories the next morning. Without Schedules, the request and its time would sit in a database, with a cron job checking for due work. With Schedules, the agent records both in a schedule, and Vercel uses Queues to deliver the request to the app when it is due. Schedules can also be tested on Preview deployments and in custom environments before Production.

Source: Introducing Vercel Schedules – Vercel.