The only path to marking a runtime offline was the daemon's deregister call on graceful shutdown. If the daemon crashed, was killed, or lost network, the status stayed "online" forever. Add a background goroutine that sweeps every 30s and marks runtimes offline after 45s without a heartbeat (3 missed intervals). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| activity.sql.go | ||
| agent.sql.go | ||
| comment.sql.go | ||
| db.go | ||
| inbox.sql.go | ||
| issue.sql.go | ||
| member.sql.go | ||
| models.go | ||
| personal_access_token.sql.go | ||
| runtime.sql.go | ||
| runtime_usage.sql.go | ||
| skill.sql.go | ||
| subscriber.sql.go | ||
| user.sql.go | ||
| verification_code.sql.go | ||
| workspace.sql.go | ||