Skip to content

Fix CLI backup commands not queuing when backup is running#2348

Merged
m3nu merged 2 commits intoborgbase:masterfrom
m3nu:fix/cli-backup-queuing-2299
Jan 23, 2026
Merged

Fix CLI backup commands not queuing when backup is running#2348
m3nu merged 2 commits intoborgbase:masterfrom
m3nu:fix/cli-backup-queuing-2299

Conversation

@m3nu
Copy link
Contributor

@m3nu m3nu commented Jan 20, 2026

Summary

  • Remove the global is_worker_running() check in message_received_event_response() that was rejecting CLI backup commands when any backup was already running
  • The JobsManager already handles proper per-repository queuing, but CLI commands never reached it
  • Add early return when profile has no repo (cleaner than attempting backup that will fail)
  • Add info-level logging when a backup is queued via CLI

Test plan

  • Start Vorta GUI
  • Run: vorta --create Profile1 && vorta --create Profile2 && vorta --create Profile3
  • Verify all three profiles are backed up (sequentially if same repo, in parallel if different repos)
  • Test with invalid profile name → warning logged
  • Test with profile without repo → warning logged, no crash

Fixes #2299

Remove the global is_worker_running() check in message_received_event_response()
that was rejecting CLI backup commands when any backup was already running.

The JobsManager already handles proper per-repository queuing:
- Multiple profiles on the same repo queue sequentially
- Multiple profiles on different repos run in parallel

Also add early return when profile has no repo and info-level logging
when a backup is queued via CLI.

Fixes #2299
@m3nu m3nu force-pushed the fix/cli-backup-queuing-2299 branch from 9984daf to 5bb5562 Compare January 20, 2026 20:17
@m3nu m3nu merged commit 25cbf72 into borgbase:master Jan 23, 2026
2 of 5 checks passed
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.

Regression: CLI "vorta --create" discards subsequent profile backups instead of queuing (v0.10.3 vs. v0.8.x)

1 participant