[pve-devel] [PATCH 2/2] dynamically adjust interval based on last runtime

Dietmar Maurer dietmar at proxmox.com
Tue Oct 8 07:29:58 CEST 2013


> Am 08.10.2013 06:33, schrieb Dietmar Maurer:
> > Wouldn't it be simpler to add a callback which gets called after the load?
> >
> > 	    if (PVE.Utils.authOK()) {
> > 		PVE.data.UpdateQueue.queue(me, function(success)  {
> > 		      load_task.delay(config.interval, run_load_task);
> > 		})
> > 	....
> 
> So you mean to skip the patch the first patch and put the calculation into the
> UpdateStore.js?

The idea is to modify UpdateQueue.queue() , so that the callback is called "after" the load.
That way you do not need to calculate anything, because the new task is started after the load.




More information about the pve-devel mailing list