> > > doesn't this return the first job which has this target node? and not > > > the only job which has this guest ID and target node? > > > > We may also have different replication job types in future, and not all > > of them have a 'target' property... > > hmm.. maybe a more abstract method to retrieve jobs (or job IDs) of a > given type with given property key/value pairs? > > get_jobids { > my ($cfg, $vmid, $type, %property_filter) > > or we get all jobs for the given guest and type, and filter at the > caller side?
yes (fiter directly inside migration code). _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel