mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 15:35:51 +03:00
[PR #410] Async Task Interface for long running functions #446
Labels
No labels
good first issue
issue/confirmed
issue/critical
proposal/accepted
pull-request
type/bug
type/enhancement
type/feature
type/question
type/refactoring
type/testing
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-api-go#446
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Telmate/proxmox-api-go/pull/410
Author: @Tinyblargon
Created: 4/3/2025
Status: 🔄 Open
Base:
master← Head:#388-2📝 Commits (7)
0f17283feat: new task handlereddb282feat:dummyTaskwith feature flagf9394dbrefactor: useTaskinterfaced21b934fix: task logs test08ab6actest: task cleanup on error2685d5cHideLogStream()as it lacks testing20ea37bdocs: Task fature flag information.📊 Changes
21 files changed (+1121 additions, -137 deletions)
View changed files
📝
cli/command/content/iso/download.go(+4 -1)📝
cli/command/content/template/download.go(+4 -1)📝
cli/command/create/create-snapshot.go(+4 -1)📝
cli/command/delete/delete-file.go(+4 -1)📝
cli/command/delete/delete.go(+6 -1)➕
internal/atomicerror/atomicerror.go(+33 -0)➕
internal/notify/notify.go(+28 -0)📝
main.go(+2 -1)📝
proxmox/client.go(+124 -37)📝
proxmox/config_guest.go(+10 -11)📝
proxmox/config_qemu.go(+29 -9)📝
proxmox/config_qemu_disk.go(+9 -3)📝
proxmox/content.go(+4 -4)📝
proxmox/content_iso.go(+4 -4)📝
proxmox/content_template.go(+2 -3)📝
proxmox/snapshot.go(+21 -26)➕
proxmox/task.go(+523 -0)➕
proxmox/task_test.go(+271 -0)📝
proxmox/vmref.go(+31 -30)📝
proxmox/vmref_test.go(+4 -2)...and 1 more files
📄 Description
Adds a
Taskinterface that can be used for asynchronously awaiting the completion of the task.The async part is enabled with the
Features.AsyncTaskflag in theClientstruct.Resolves #388
Supersedes:
Closes #397
Closes #389
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.