Summary: - Fix pg-boss queue conflict (duplicate key violation on queue_pkey) - Add global error listener to prevent process crash - Reduce connection pool from 10 to 4 - Add graceful shutdown handling (SIGTERM/SIGINT) - Fix researchWorker recursive call bug in catch block - Make screeningWorker idempotent using upsert Security Standards (v1.1): - Prohibit recursive retry in Worker catch blocks - Prohibit payload bloat (only store fileKey/ID in job.data) - Require Worker idempotency (upsert + unique constraint) - Recommend task-specific expireInSeconds settings - Document graceful shutdown pattern New Features: - PKB signed URL endpoint for document preview/download - pg_bigm installation guide for Docker - Dockerfile.postgres-with-extensions for pgvector + pg_bigm Documentation: - Update Postgres-Only async task processing guide (v1.1) - Add troubleshooting SQL queries - Update safety checklist Tested: Local verification passed
113 lines
693 B
Plaintext
113 lines
693 B
Plaintext
# Node.js
|
||
node_modules
|
||
npm-debug.log
|
||
yarn-error.log
|
||
.npm
|
||
.yarn
|
||
|
||
# 开发文件
|
||
.env
|
||
.env.*
|
||
*.local
|
||
|
||
# 构建产物(Dockerfile 中会重新生成)
|
||
dist
|
||
|
||
# 测试文件
|
||
test
|
||
tests
|
||
*.test.ts
|
||
*.test.tsx
|
||
*.spec.ts
|
||
*.spec.tsx
|
||
coverage
|
||
.nyc_output
|
||
|
||
# 文档和临时文件
|
||
docs
|
||
*.md
|
||
!README.md
|
||
.vscode
|
||
.idea
|
||
.DS_Store
|
||
Thumbs.db
|
||
|
||
# Git
|
||
.git
|
||
.gitignore
|
||
.gitattributes
|
||
|
||
# CI/CD
|
||
.github
|
||
.gitlab-ci.yml
|
||
.travis.yml
|
||
|
||
# 日志
|
||
*.log
|
||
logs
|
||
|
||
# 临时文件
|
||
temp
|
||
tmp
|
||
*.swp
|
||
*.swo
|
||
*~
|
||
|
||
# 编辑器配置
|
||
.editorconfig
|
||
.prettierrc
|
||
.eslintrc*
|
||
|
||
# TypeScript 配置(保留 tsconfig.json,其他忽略)
|
||
tsconfig.tsbuildinfo
|
||
|
||
# Vite
|
||
.vite
|
||
vite.config.*.timestamp-*
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|