[GH-ISSUE #151] feature request: qemu agent exec-status pid re-checker #77

Open
opened 2026-02-27 15:46:19 +03:00 by kerem · 0 comments
Owner

Originally created by @ITJamie on GitHub (Nov 29, 2023).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/151

Originally assigned to: @jhollowe on GitHub.

It would be great if there was a built in wait/retry function to keep checking for exec-status response to be finished.

from docs:

>>> prox.nodes("example-node").qemu("103").agent("exec").post(command="echo hello")
{'pid': 5413}
>>> prox.nodes("example-node").qemu("103").agent("exec-status").get(pid=5413)
{'out-data': 'hello\n', 'exited': 1, 'exitcode': 0}

so something like

prox.nodes("example-node").qemu("103").agent("exec-status").get(pid=5413, retry_until_finished=True)
Originally created by @ITJamie on GitHub (Nov 29, 2023). Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/151 Originally assigned to: @jhollowe on GitHub. It would be great if there was a built in wait/retry function to keep checking for exec-status response to be finished. from docs: ``` >>> prox.nodes("example-node").qemu("103").agent("exec").post(command="echo hello") {'pid': 5413} >>> prox.nodes("example-node").qemu("103").agent("exec-status").get(pid=5413) {'out-data': 'hello\n', 'exited': 1, 'exitcode': 0} ``` so something like ``` prox.nodes("example-node").qemu("103").agent("exec-status").get(pid=5413, retry_until_finished=True) ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmoxer#77
No description provided.