Add @trails-cool/jobs package wrapping pg-boss for durable background job execution using the existing PostgreSQL database. Wire up planner session expiry as the first scheduled job (hourly, 7-day TTL) — this was previously dead code that never ran. Add placeholder worker to journal for future Komoot import and federation jobs. Infrastructure: grant grafana_reader access to pgboss schema, add job queue health panels to Service Health dashboard, add failed job alert. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
21 lines
380 B
JSON
21 lines
380 B
JSON
{
|
|
"name": "@trails-cool/jobs",
|
|
"version": "0.0.1",
|
|
"type": "module",
|
|
"exports": {
|
|
".": "./src/index.ts"
|
|
},
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"scripts": {
|
|
"test": "vitest run",
|
|
"lint": "eslint .",
|
|
"typecheck": "tsc"
|
|
},
|
|
"dependencies": {
|
|
"pg-boss": "^10.3.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "catalog:"
|
|
}
|
|
}
|