[pve-devel] [pve-guest-common 1/2] get_jobid
Dietmar Maurer
dietmar at proxmox.com
Fri Jun 9 12:37:46 CEST 2017
> > > 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).
More information about the pve-devel
mailing list