Commit f4438e3
fix(dab): restart dab-postgres on-failure so a mid-run crash doesn't lose the DB (#12)
The dab-postgres service had a pg_isready healthcheck and a service_healthy
startup gate but no restart policy (unlike dab-mongo). When postgres:17 dies
mid-run (crash/OOM) it is never restarted, the container leaves dab-net, and
`dab-postgres` stops resolving for the rest of the trial ('could not translate
host name dab-postgres'). For hybrid pg+duckdb datasets like PANCANCER_ATLAS the
clinical data then becomes unreachable and the agent can only abstain — observed
on PANCANCER_ATLAS q2/q3 (both 'UNABLE TO DETERMINE', reward 0), which alone
account for ~0.056 of stratified pass@1.
Add 'restart: on-failure' to dab-postgres, mirroring the dab-mongo fix, so the
populated data dir comes straight back up and main's healthcheck recovers.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent cb298b0 commit f4438e3
2 files changed
Lines changed: 20 additions & 0 deletions
File tree
- packages/razorback-plugin-dab
- src/razorback_plugin_dab/generate
- tests/unit
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
119 | 125 | | |
120 | 126 | | |
121 | 127 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
43 | 57 | | |
44 | 58 | | |
45 | 59 | | |
| |||
0 commit comments