You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ Then add the plugin to `~/.config/opencode/opencode.json`:
27
27
}
28
28
```
29
29
30
-
Restart OpenCode to load 11 `supertask_*` tools. Then choose how to run the Gateway:
30
+
Restart OpenCode to load 8 queue-management `supertask_*` tools. Execution state is owned only by the Gateway; the plugin no longer exposes manual `start/done/fail` transitions. Then choose how to run the Gateway:
31
31
32
32
```bash
33
33
supertask install # recommended for long-running use: explicit pm2 setup
@@ -97,6 +97,7 @@ supertask uninstall # stop and remove from pm2
97
97
supertask gateway # start Gateway in foreground
98
98
supertask ui # open Web Dashboard in browser
99
99
supertask config # show current config
100
+
supertask doctor [--json] # end-to-end runtime diagnostics
@@ -180,15 +181,15 @@ The complete configuration reference and restart semantics are documented in [Op
180
181
```
181
182
182
183
Key mechanisms:
183
-
-**Process supervision** — optional pm2 crash recovery; plugin load never installs pm2, but can reuse an existing installation
184
+
-**Process supervision** — optional pm2 crash recovery with a 512 MB default memory restart threshold; plugin load never installs pm2, but can reuse an existing installation
184
185
-**Version-aware restart** — if pm2 is already installed, plugin load starts or restarts the Gateway when the package version changes
185
186
-**Process lock** — SQLite `BEGIN IMMEDIATE` ensures single instance
186
-
-**Readiness check** — PM2 PID must match a fresh, ready Gateway lock; `/health` also checks component activity
187
+
-**Readiness check** — PM2 PID must match a fresh, ready Gateway lock; `/health` also reports component activity, consecutive failures, and the latest error
187
188
-**Heartbeat** — Worker updates every 30s; Watchdog kills stale processes
188
189
-**Graceful shutdown** — stop claiming work, drain active tasks for 30s, then interrupt and requeue only unfinished tasks
189
190
-**Exponential backoff** — configurable base × 2^n, capped at 30min
-**Guarded deletion** — active runs and prerequisites of executable dependent tasks cannot be deleted
@@ -197,7 +198,7 @@ Key mechanisms:
197
198
198
199
http://localhost:4680 — 4 pages:
199
200
200
-
Health endpoint: `GET http://localhost:4680/health` returns 200 only after Gateway startup completes and its internal loops remain active.
201
+
Health endpoint: `GET http://localhost:4680/health` returns 200 only after Gateway startup completes and its internal loops remain active without an unrecovered loop failure. `supertask doctor` also checks OpenCode, SQLite, PM2 readiness, Dashboard health, and log rotation.
0 commit comments