Commit Graph

2 Commits

Author SHA1 Message Date
tigerenwork 088925cee4 feat: stop/cancel running migrations and orphan cleanup on startup
- new run status 'cancelled'; stop button on pipeline detail and run detail
  pages (SIGTERM, SIGKILL after 5s, stage-boundary cancel checks)
- POST /api/runs/[id]/stop; works for in-process runs and orphans (by pid)
- startup reconciliation via instrumentation.ts register(): SIGTERM live
  orphan sling/atlas processes (mark cancelled), mark dead-pid stale runs
  failed; appends a note to the run log
- previously: exiting the server left sling running orphaned and the run
  stuck at 'running' forever
2026-08-09 22:31:25 +08:00
tigerenwork fcb0f2e299 feat: local web UI for DB migration via Atlas (schema) + sling (data)
- Connections CRUD with test (sling conns test) and table discovery (sling conns discover)
- Pipelines: source/target, mode, schema_sync toggle, per-table PK/UK for incremental
- Run engine: atlas schema apply then sling run -r, JSON log parsing, SSE live logs
- Runs history with log replay; dashboard with binary health check
- Atlas dev schema on target server (sling_ui_atlas_dev) instead of docker dev-url
- full-refresh translated to truncate when schema_sync is on to preserve Atlas-built DDL
2026-08-09 17:10:17 +08:00