Add UI override start / stop / pause timer button #20

Closed
opened 2026-07-29 13:45:21 +02:00 by daniels · 2 comments
Owner

The start / stop / pause should stop new jobs from being added to the queue, it should not stop the current job from processeing finish. For that the cancel job should be used (implement this too)

The start / stop / pause should stop new jobs from being added to the queue, it should not stop the current job from processeing finish. For that the cancel job should be used (implement this too)
daniels added the
prio
1
label 2026-07-29 14:06:01 +02:00
daniels referenced this issue from a commit 2026-07-29 14:35:41 +02:00
Author
Owner

Implementation update

Implemented queue override controls for issue #20.

What changed

  • Added persistent queue control state for running, paused, and stopped modes.
  • Added UI buttons and API endpoints for start, pause, stop, and cancel current job.
  • Pause/stop now prevent new jobs from being added to the queue without interrupting queued/importing work.
  • Cancel current job can stop before the next item or interrupt an active copy at safe chunk boundaries while cleaning up partial files.
  • Added regression coverage for pause/start behavior and cancellation.

Branch and commit

  • Branch: 20-add-ui-override-controls
  • Commit: 8cb82ee (Add queue override controls)

Verification

  • .venv/bin/python -m pytest -q → 20 passed
  • git diff --check → no whitespace errors

Result

Issue #20 is implemented and pushed. Closing the issue.

## Implementation update Implemented queue override controls for issue #20. ## What changed - Added persistent queue control state for running, paused, and stopped modes. - Added UI buttons and API endpoints for start, pause, stop, and cancel current job. - Pause/stop now prevent new jobs from being added to the queue without interrupting queued/importing work. - Cancel current job can stop before the next item or interrupt an active copy at safe chunk boundaries while cleaning up partial files. - Added regression coverage for pause/start behavior and cancellation. ## Branch and commit - Branch: `20-add-ui-override-controls` - Commit: `8cb82ee` (`Add queue override controls`) ## Verification - `.venv/bin/python -m pytest -q` → 20 passed - `git diff --check` → no whitespace errors ## Result Issue #20 is implemented and pushed. Closing the issue.
Author
Owner

Follow-up deployment correction

The first deployment still served the legacy importarr-status UI, so the queue control feature was installed but not visible at the public URL.

What changed now

  • Removed the legacy importarr.status_ui module and importarr-status console script.
  • Updated importarr.service to run the single FastAPI importarr entrypoint.
  • Updated the repo-upgrade helper to install the systemd unit and reload systemd during upgrades.
  • Fixed FastAPI template rendering for the live Jinja/Starlette version.

Live verification

  • https://importarr.delphas.dk/ returns 200 and contains Queue controls, data-control, and cancel-current.
  • /api/status and /api/jobs return 200 and include queue_mode.
  • /api/queue now returns 404, confirming the legacy status API path is gone.
  • importarr.service ExecStart is /opt/importarr/venv/bin/importarr.
  • importarr.status_ui is no longer importable in the deployed venv.

Commits

  • f4d151f Remove legacy Importarr status UI
  • a443909 Fix FastAPI index rendering
## Follow-up deployment correction The first deployment still served the legacy `importarr-status` UI, so the queue control feature was installed but not visible at the public URL. ## What changed now - Removed the legacy `importarr.status_ui` module and `importarr-status` console script. - Updated `importarr.service` to run the single FastAPI `importarr` entrypoint. - Updated the repo-upgrade helper to install the systemd unit and reload systemd during upgrades. - Fixed FastAPI template rendering for the live Jinja/Starlette version. ## Live verification - `https://importarr.delphas.dk/` returns 200 and contains `Queue controls`, `data-control`, and `cancel-current`. - `/api/status` and `/api/jobs` return 200 and include `queue_mode`. - `/api/queue` now returns 404, confirming the legacy status API path is gone. - `importarr.service` ExecStart is `/opt/importarr/venv/bin/importarr`. - `importarr.status_ui` is no longer importable in the deployed venv. ## Commits - `f4d151f` Remove legacy Importarr status UI - `a443909` Fix FastAPI index rendering
daniels referenced this issue from a commit 2026-07-29 15:06:38 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: daniels/importarr#20