I would just leave the pending tasks, letting them clear when the device does 
it's next inform.

If you are worried about stacking up a big list of refeshObjects on offline 
devices.  You can do a few things.

1) Before adding new tasks, check the count on current pending tasks, only 
adding new tasks if pending is below an acceptable threshold.

2) A good way to know if a device is truly offline, is to look at the time of 
the last inform, add the inform interval time, checking if this time is less 
than the now time.  If the the device is over-due on it's inform, you can 
assume the device is hard offline.

Spence

> 
>     On October 11, 2018 at 7:53 PM Tunde Oyeyemi <[email protected]> 
> wrote:
> 
>     Please I require an assistance in addressing an issue. I have several
>     pending tasks mainly refreshObject, getparameters and setparameters on
>     several CPEs and this is due to the fact that the devices were offline
>     at the time of API execution.
> 
>     How do I prevent this from happening perhaps if I have a check I can run
>     to check the device status(offline or online). I can then exclude
>     offline devices from API calls.
> 
>     genieacs version: 1.1.2
> 
>     Tunde Oyeyemi
> 
>     _______________________________________________
>     Users mailing list
>     [email protected]
>     http://lists.genieacs.com/mailman/listinfo/users
> 
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users

Reply via email to