g1t/services/events/wrangler.jsonc
{
"$schema": "../../node_modules/wrangler/config-schema.json",
"name": "g1t-events",
"account_id": "1e6f2cffa3f445920836e8ebe446bb58",
"compatibility_date": "2026-09-26",
// Runs next to its database: a request makes several queries in turn,
// and each would otherwise cross the distance to it.
"placement": { "mode": "smart" },
"main": "build/index.js",
"build": { "command": "cargo install -q worker-build@0.8.7 && worker-build --release" },
"workers_dev": false,
"d1_databases": [
{
"binding": "DB",
"database_name": "g1t-events",
"database_id": "dd889749-0d01-4c94-8b9b-d789dec1c0e4",
"migrations_dir": "migrations"
}
],
"queues": {
"producers": [
{ "binding": "BUS", "queue": "g1t-events" },
// One queue per subscribing service, so each consumes, retries
// and scales on its own. Bindings named SUBSCRIBER_* receive
// every event.
{ "binding": "SUBSCRIBER_WORK", "queue": "g1t-events-work" },
{ "binding": "SUBSCRIBER_RUNNER", "queue": "g1t-events-runner" },
{ "binding": "SUBSCRIBER_INTEGRATIONS", "queue": "g1t-events-integrations" },
{ "binding": "SUBSCRIBER_WEBHOOKS", "queue": "g1t-events-webhooks" },
{ "binding": "SUBSCRIBER_ACTIONS", "queue": "g1t-events-actions" },
{ "binding": "SUBSCRIBER_DEPLOYMENTS", "queue": "g1t-events-deployments" },
{ "binding": "SUBSCRIBER_PROJECTS", "queue": "g1t-events-projects" },
{ "binding": "SUBSCRIBER_REPOS", "queue": "g1t-events-repos" },
{ "binding": "SUBSCRIBER_BILLING", "queue": "g1t-events-billing" },
{ "binding": "SUBSCRIBER_SECURITY", "queue": "g1t-events-security" },
{ "binding": "SUBSCRIBER_CONTEXT", "queue": "g1t-events-context" },
{ "binding": "SUBSCRIBER_SEARCH", "queue": "g1t-events-search" }
],
"consumers": [{ "queue": "g1t-events", "max_batch_size": 100, "max_batch_timeout": 1 }]
},
// Once a day, audit entries older than the audit log reads back are
// removed. The same on every plan: keep it at least billing's
// AUDIT_RETENTION_DAYS.
"triggers": { "crons": ["41 3 * * *"] },
"vars": { "AUDIT_KEEP_DAYS": "90" },
"observability": { "enabled": true }
}