Resources
Triggers off real state, not a schedule
Built
A resource is a declaration of something the platform should watch. A database table, an object storage prefix, a release feed, an incoming webhook, a Git branch. When it changes, the pipeline runs — and the thing that changed comes with it, as a payload your steps can read.This is the difference between an event and a poll. A builder that checks every five minutes isn’t reacting to your data; it’s guessing, and the guess costs you five minutes and a lot of wasted requests. A resource knows.Resources are also where the “templateless” claim gets settled. There is no catalogue of supported integrations, because there is no catalogue at all — a resource type is a container image implementing a small interface, and you write the ones you need. If the service has an API, it can be a resource.resources:
# d1-query is user-written. There is no catalogue to pick from.
- name: form-submissions
type: d1-query
source:
account: ((cloudflare.account_id))
token: ((cloudflare.api_token))
database: formzero
query: SELECT * FROM submissions WHERE notified = 0
d1-query is user-written.