Re: [OpenSIPS-Users] Asynchronous processing in OpenSIPS 1.12

2014-09-03 Thread Bogdan-Andrei Iancu
Brett, The timeout for the async ops will be control by the reactor (like triggering the timouts) and set by the module starting the op - like the rest_client module will set the timeout for the HTTP rest queries. The processes are not suspended, just the context of an execution. So at the

Re: [OpenSIPS-Users] Asynchronous processing in OpenSIPS 1.12

2014-09-03 Thread Bogdan-Andrei Iancu
On 03.09.2014 12:06, Saúl Ibarra Corretgé wrote: On 02 Sep 2014, at 18:26, Răzvan Crainea raz...@opensips.org wrote: Hi all, Among the last discussion of the last IRC meeting[1] was related to Asynchronous processing in OpenSIPS script - we want to add a new mechanism that allows you to

Re: [OpenSIPS-Users] Asynchronous processing in OpenSIPS 1.12

2014-09-03 Thread Saúl Ibarra Corretgé
On 03 Sep 2014, at 11:59, Bogdan-Andrei Iancu bog...@opensips.org wrote: On 03.09.2014 12:06, Saúl Ibarra Corretgé wrote: On 02 Sep 2014, at 18:26, Răzvan Crainea raz...@opensips.org wrote: Hi all, Among the last discussion of the last IRC meeting[1] was related to Asynchronous

Re: [OpenSIPS-Users] Asynchronous processing in OpenSIPS 1.12

2014-09-03 Thread Bogdan-Andrei Iancu
On 03.09.2014 13:02, Saúl Ibarra Corretgé wrote: On 03 Sep 2014, at 11:59, Bogdan-Andrei Iancu bog...@opensips.org wrote: On 03.09.2014 12:06, Saúl Ibarra Corretgé wrote: On 02 Sep 2014, at 18:26, Răzvan Crainea raz...@opensips.org wrote: Hi all, Among the last discussion of the last IRC

Re: [OpenSIPS-Users] Asynchronous processing in OpenSIPS 1.12

2014-09-03 Thread Saúl Ibarra Corretgé
My concern is with that last part: if a function which doesn’t support async is called within an async block it will block but then make the jump thus deceiving the user into believing it was async when it isn’t. We need to fail loudly and tell users they are doing it wrong, iMHO. Of

Re: [OpenSIPS-Users] Asynchronous processing in OpenSIPS 1.12

2014-09-03 Thread Bogdan-Andrei Iancu
On 03.09.2014 14:43, Saúl Ibarra Corretgé wrote: My concern is with that last part: if a function which doesn’t support async is called within an async block it will block but then make the jump thus deceiving the user into believing it was async when it isn’t. We need to fail loudly and tell

[OpenSIPS-Users] Asynchronous processing in OpenSIPS 1.12

2014-09-02 Thread Răzvan Crainea
Hi all, Among the last discussion of the last IRC meeting[1] was related to Asynchronous processing in OpenSIPS script - we want to add a new mechanism that allows you to perform asynchronous operations (such as DB , REST or exec operations) directly from the script. Using this feature will

Re: [OpenSIPS-Users] Asynchronous processing in OpenSIPS 1.12

2014-09-02 Thread Brett Nemeroff
I'm curious what the failure cases look like here.. What happens when your long running db query is excessively long? Is there a timeout? What happens if you have 1000s of backed up processes. Would love to see some sort of fifo command somehow quantify the effectiveness of it being async. Not