Skip to content

Bump version to v1.2.1 and enhance execution cancellation features#11

Merged
Skyfay merged 5 commits intomainfrom
dev
Mar 26, 2026
Merged

Bump version to v1.2.1 and enhance execution cancellation features#11
Skyfay merged 5 commits intomainfrom
dev

Conversation

@Skyfay
Copy link
Copy Markdown
Owner

@Skyfay Skyfay commented Mar 26, 2026

No description provided.

Skyfay added 5 commits March 26, 2026 19:43
Bump project and wiki package versions to 1.2.1 and update OpenAPI docs' version fields. Add a new v1.2.1 section to the changelog documenting the Docker image, tags, and supported platforms.

Modified files: package.json, wiki/package.json, api-docs/openapi.yaml, public/openapi.yaml, wiki/changelog.md.
Replace global sql.connect() singleton with new sql.ConnectionPool(connConfig) + await pool.connect() across MSSQL adapter methods to create independent per-operation pools and avoid concurrent requests closing each other's connections. Update Database Explorer to remove the parallel test-connection call and read server version from the database-stats response. Update changelog to document these fixes.
Add optional requestTimeout and onMessage parameters to executeQueryWithMessages so callers can override the request timeout (0 = no timeout) and receive SQL Server info messages in real time. Update dump and restore flows to call executeQueryWithMessages with requestTimeout=0 and a message callback that logs progress, preventing long-running BACKUP/RESTORE operations from timing out and providing live UI updates. Update changelog entries to document the fix and improvement.
Introduce user-triggered cancellation for executions across the stack.

- API: Add POST /api/executions/[id]/cancel to cancel Pending executions (DB update) or Running executions (in-memory abort with DB fallback) and append cancel log entries.
- Core: Add lib/execution-abort.ts (register/unregister/abort/isExecutionRunning) as a centralized abort registry.
- Runner/Types: Register executions on start, expose abortSignal in RunnerContext, check for cancellation during steps, mark executions as Cancelled on abort and unregister on finish.
- RestoreService: Register restores for cancellation and differentiate cancelled vs failed flows (update DB status/logs accordingly).
- UI: Add Cancelled status to history columns, show Cancel button in execution dialog (with spinner), and wire cancellation request; update badges and components to render Cancelled state.
- Dashboard: Add cancelled counts/colors to activity/job-status widgets and latest jobs list; update dashboard-service to include cancelled in activity and distribution data.
- Docs: Update changelog to document the new cancel feature and UI/visual changes.

This change enables safe cancellation of queued or in-progress backups/restores, with process-local aborts and a robust DB fallback for cases where the execution isn't tracked by the current process.
Expand the v1.2.1 changelog heading to surface key highlights (Execution Cancellation, MSSQL Progress & Dashboard Polish) so the release's primary updates are visible at a glance. Release date remains unchanged.
@Skyfay Skyfay merged commit 7738228 into main Mar 26, 2026
4 checks passed
@Skyfay Skyfay deleted the dev branch March 28, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant