---
title: "Your Neon Functions can now run on a schedule"
description: "Neon Function Triggers let Neon invoke a deployed Node.js function on a cron schedule."
url: "https://swe.quest/articles/your-neon-functions-can-now-run-on-a-schedule-72b4a206b2b5554b"
canonical: "https://neon.com/blog/your-neon-functions-can-now-run-on-a-schedule"
source: "Neon"
published: "2026-09-21"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 5
tags: ["serverless","postgres","scheduling"]
---

# Your Neon Functions can now run on a schedule

A post on [Neon](https://swe.quest/sources/neon.md), published 2026-09-21, 5 min read, Announcement. Original: [https://neon.com/blog/your-neon-functions-can-now-run-on-a-schedule](https://neon.com/blog/your-neon-functions-can-now-run-on-a-schedule)

## Summary

Neon Function Triggers let Neon invoke a deployed Node.js function on a cron schedule. Because the timer lives outside the Postgres compute, scheduled jobs keep working with scale to zero, unlike pg\_cron, which only runs while the compute is up and can only execute SQL. Triggers are branch-scoped, and child branches inherit their parent's triggers in a disabled state, so branching production doesn't double-fire jobs. A worked example uses a Hono handler that verifies the X-Neon-Trigger-Invocation-Id header, reads scheduled\_at from the request body, and uses ON CONFLICT DO NOTHING to stay idempotent, plus the API call that creates a 15-minute schedule.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Scheduling](https://swe.quest/tags/scheduling.md) (Distributed systems)

## Prerequisites

- Postgres basics ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- cron expressions
- serverless functions ([easy posts on Serverless](https://swe.quest/tags/serverless.md?difficulty=easy))

## Keywords

Neon Functions, Function Triggers, pg\_cron, Hono, Neon API, scale to zero

## Related posts

- [Neon Functions: backend logic next to your data](https://swe.quest/articles/neon-functions-backend-logic-next-to-your-data-fe00336dce0040ff.md): Neon · 2026-08-12 · Medium · 5 min read · Serverless, PostgreSQL, Real-time systems
  Neon Functions are long-running Node.js 24 compute deployed onto a Neon branch, in the same region and on the same infrastructure as its Lakebase Postgres database, with DATABASE\_URL and other Neon backend credentials injected automatically.
- [Postgres as a CRON Server](https://swe.quest/articles/postgres-as-a-cron-server-d7e215165e9a3fbe.md): Supabase · 2021-03-05 · Medium · 6 min read · PostgreSQL, Scheduling, SQL
  Postgres can act as a cron server by combining the pg\_cron extension for scheduling with the pgsql-http extension for outbound HTTP calls, letting a scheduled SQL statement POST to a webhook every minute.
- [Postgres Event Triggers Are Now Supported in Neon](https://swe.quest/articles/postgres-event-triggers-are-now-supported-in-neon-6c294c5befac4572.md): Neon · 2025-07-03 · Medium · 3 min read · PostgreSQL, Schema migrations
  Neon now supports Postgres event triggers through the neon\_superuser role, and they behave exactly as in vanilla Postgres.
- [When a file is uploaded, run the job on Neon](https://swe.quest/articles/when-a-file-is-uploaded-run-the-job-on-neon-11d1f9b245942444.md): Neon · 2026-09-22 · Medium · 7 min read · Serverless, Event-driven architecture, PostgreSQL, Storage systems
  Neon added a storage\_object\_created function trigger that invokes a Neon Function via HTTP POST when an object is created in a Neon Object Storage bucket, optionally filtered by key prefix.
- [Run Scheduled and Recurring Tasks with Cron](https://swe.quest/articles/run-scheduled-and-recurring-tasks-with-cron-ca49b6813f0599a8.md): Railway · 2025-11-26 · Medium · 10 min read · Scheduling, Deployment, PostgreSQL
  Cron runs commands on time-based schedules but keeps no job history, has no retries and does no concurrency control, so reliability depends on the job itself.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
