feat: support durable task cancellation without foreign keys

This commit is contained in:
2026-09-17 17:03:23 +08:00
parent 6805506450
commit 3ce7d2c104
48 changed files with 1642 additions and 164 deletions

View File

@@ -18,7 +18,7 @@ HTTP 200,`Content-Type: application/json`:
## GET /health/ready
检查数据库连接和迁移记录是否与当前二进制的版本、校验和一致且没有 dirty 标记。内部检查最多 2 秒。
检查数据库连接和迁移记录是否与当前二进制的版本、校验和一致且没有 dirty 标记,并检查 Orbit 表的数据库外键为 0。内部检查最多 2 秒。
```sh
curl -i http://127.0.0.1:8080/health/ready
@@ -30,7 +30,7 @@ curl -i http://127.0.0.1:8080/health/ready
{"status":"ready","scope":"database_and_schema"}
```
数据库不可用、迁移缺失、记录被修改或存在 dirty 标记时 HTTP 503:
数据库不可用、迁移缺失、记录被修改、存在 dirty 标记或 Orbit 表被添加外键时 HTTP 503:
```json
{"status":"not_ready"}