Fixed timeout issues
This commit is contained in:
@@ -119,7 +119,11 @@ def start_proxmox_backup(
|
|||||||
"--output-format",
|
"--output-format",
|
||||||
"json",
|
"json",
|
||||||
]
|
]
|
||||||
result = run(command, timeout=300)
|
# pvesh create for vzdump blocks and streams the task log until the backup
|
||||||
|
# finishes rather than returning a UPID immediately, so this must not have
|
||||||
|
# a fixed timeout: it can legitimately run as long as the guest's backup
|
||||||
|
# takes (a prior 300s timeout was killing real, in-progress vzdump jobs).
|
||||||
|
result = run(command, timeout=None)
|
||||||
upid = _extract_upid(result.stdout)
|
upid = _extract_upid(result.stdout)
|
||||||
if not upid:
|
if not upid:
|
||||||
upid = _extract_upid(result.stderr)
|
upid = _extract_upid(result.stderr)
|
||||||
|
|||||||
Reference in New Issue
Block a user