Skip to content

Bulk Container Updates & Background Execution

StackPilot provides an enterprise-grade Bulk Workload Update Engine that allows you to safely update containers across multiple hosts simultaneously, without locking up your browser or interrupting your navigation.


Update Workflow Overview

sequenceDiagram autonumber actor Operator as Admin / Operator participant Hub as Central Hub SPA participant Agent as Node Agent Daemon participant Podman as Podman & Systemd Operator->>Hub: Click "Update All Workloads" or Card Update Hub->>Operator: Display Workload Selection Modal Operator->>Hub: Confirm Selection (with optional snapshot toggle) Hub->>Agent: POST /api/hosts/{ip}/action (sequential per host) Hub->>Hub: Open Execution Split Modal (Terminal Logs + Progress Track) Operator->>Hub: Click "Minimize" (_) Hub->>Hub: Collapse to Floating Pill & Dashboard Banner loop Background Progress Polling (SSE + REST) Agent->>Podman: Pre-update Volume Snapshot Agent->>Podman: Pull layers & verify SHA-256 digest Agent->>Podman: systemctl --user restart <service> Agent->>Hub: Stream real-time stdout/stderr log chunks end Operator->>Hub: Click Floating Pill (Restore Modal) Hub->>Operator: All workloads healthy (100% complete)

1. Initiating Updates

Updates can be initiated from multiple contexts:

  • Fleet-Wide Action: In the Attention Required rail, click the Update All Workloads button to target all out-of-date containers across all online nodes.
  • Single Host Card: Click the Update (N) button on an individual host card.
  • Workload Table: Inside any single host view, select one or more containers and click Update Selected.

2. Selection & Pre-Update Safety

Before execution begins, the Bulk Update Modal presents a checklist of detected updates:

  • Grouped by Host: Workloads are categorized by node with container names and current vs target tags.
  • Selective Updating: Uncheck individual workloads if you prefer to hold them back.
  • Pre-Update Snapshot Protection: By default, StackPilot verifies or creates a pre-update volume snapshot before pulling new layers. You can toggle "Skip pre-update backup" if disk space is constrained.

3. Real-Time Split-View Execution Modal

Once started, the update execution modal provides real-time visibility:

  • Workload Status Panel (Left): Live checklist with status chips (Queued, In Progress, Done, Failed).
  • Live Terminal Panel (Right): Monospaced terminal streaming raw stdout/stderr from Podman, including layer download progress, sha256 digests, and systemd unit restarts.
  • Global Progress Bar: Real-time percentage track reflecting overall batch completion.

4. Background Execution & Minimization

You do not need to keep the execution modal open while long updates run.

Window Controls

  • Minimize (—): Clicking the minimize icon button collapses the modal into a sleek Floating Tracker Pill docked in the bottom-right corner of the screen.
  • Close (✕): Closes the modal. A safety confirmation ensures you know updates continue uninterrupted in the background.

Floating Tracker Pill

  • Docked State: Stays visible in the bottom-right corner while you browse other hosts, inspect systemd logs, or edit Quadlet files.
  • Live Miniature Progress: Displays a pulsating activity dot, current active workload name, and miniature percentage bar.
  • Instant Restore: Click anywhere on the tracker pill to restore the full split-view modal and resume live log inspection.

Fleet Dashboard Update Banner

While a fleet update is in flight, the Fleet Dashboard automatically displays a glass progress banner above the host grid, showing the overall completion ratio (X/Y completed) and a button to view logs.