pr_01m47d15m3e54sn21z27rpy5n9/services/automations/wrangler.jsonc
| 1 | { |
| 2 | "$schema": "../../node_modules/wrangler/config-schema.json", |
| 3 | "name": "g1t-automations", |
| 4 | "account_id": "1e6f2cffa3f445920836e8ebe446bb58", |
| 5 | "compatibility_date": "2026-09-26", |
| 6 | // Runs next to its database: a run makes several queries in turn. |
| 7 | "placement": { "mode": "smart" }, |
| 8 | "main": "build/index.js", |
| 9 | "build": { "command": "cargo install -q worker-build@0.8.7 && worker-build --release" }, |
| 10 | // Reached only through service bindings. |
| 11 | "workers_dev": false, |
| 12 | "d1_databases": [ |
| 13 | { |
| 14 | "binding": "DB", |
| 15 | "database_name": "g1t-automations", |
| 16 | "database_id": "39411186-d3e0-4b8c-8c7f-d6416df64e7a", |
| 17 | "migrations_dir": "migrations" |
| 18 | } |
| 19 | ], |
| 20 | "services": [ |
| 21 | { "binding": "REPOS", "service": "g1t-repos" }, |
| 22 | { "binding": "WORK", "service": "g1t-work" }, |
| 23 | { "binding": "IDENTITY", "service": "g1t-identity" }, |
| 24 | { "binding": "RUNNER", "service": "g1t-runner" } |
| 25 | ], |
| 26 | // Every event on the bus: what starts automations, and pushes that |
| 27 | // change their files. |
| 28 | "queues": { |
| 29 | "consumers": [{ "queue": "g1t-events-automations", "max_batch_size": 20, "max_batch_timeout": 1 }] |
| 30 | }, |
| 31 | // Scheduled automations. |
| 32 | "triggers": { "crons": ["* * * * *"] }, |
| 33 | "observability": { "enabled": true } |
| 34 | } |