[SR-Users] proper way for infinite loop in event_route for evrexec module

Ihor Olkhovskyi igorolhovskiy at gmail.com
Tue Aug 16 08:09:02 CEST 2022


Patrick,


Maybe I'm a bit out of context, but could some external process like 
cron suits better for this kind of tasks than internal job?


Le 14/08/2022 à 16:37, Patrick Karton a écrit :
> Hello i would like to use the *evrexec *module to execute background 
> jobs over *exec *module *mainly because i want to be able to  trigger 
> that route manually via rpc from time to time*.
>
> in the documentation its is stated we should use tasks that run 
> forever and except using while loop i dont see another way.
>
> and i dont to want to disable *max_while_loops*. but if i disable it i 
> will get error message like *runaway while (1091, 9): more then 100 
> loops.*
>
> so is there another way to do it properly ?
>
> Thanks.
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
>    *sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the sender!
> Edit mailing list options or unsubscribe:
>    *https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220816/ac804809/attachment.htm>


More information about the sr-users mailing list