Re: [web2py] Re: controller with multiprocessing powers. Howto?

2018-02-25 Thread António Ramos
Ok thank you

2018-02-25 2:35 GMT+00:00 Massimo Di Pierro :

> Pierre is right. That is not the way to do it. This is an example of the
> XY problem.
>
> One way to do it to use the scheduler your tasks and performs the queries
> in background.
>
>
>
> On Thursday, 22 February 2018 07:11:06 UTC-6, Pierre wrote:
>>
>> i think the entry point to do multiprocessing in web2py is the
>> web2py-scheduler. Howewer with this tool you can't share objects betweeen
>> processes like you do using the multiprocessing python module so
>> synchronization might be an issue. There are other tools like for instance*
>> huey* but i am not sure it's easy to integrate with web2py. In case this
>> is feasible, i'd be interested in an Howto huey-web2py-integration :
>>
>> https://huey.readthedocs.io/en/latest/
>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: controller with multiprocessing powers. Howto?

2018-02-24 Thread Massimo Di Pierro
Pierre is right. That is not the way to do it. This is an example of the XY 
problem.

One way to do it to use the scheduler your tasks and performs the queries 
in background.



On Thursday, 22 February 2018 07:11:06 UTC-6, Pierre wrote:
>
> i think the entry point to do multiprocessing in web2py is the 
> web2py-scheduler. Howewer with this tool you can't share objects betweeen 
> processes like you do using the multiprocessing python module so 
> synchronization might be an issue. There are other tools like for instance* 
> huey* but i am not sure it's easy to integrate with web2py. In case this 
> is feasible, i'd be interested in an Howto huey-web2py-integration :
>
> https://huey.readthedocs.io/en/latest/
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: controller with multiprocessing powers. Howto?

2018-02-22 Thread Pierre
i think the entry point to do multiprocessing in web2py is the 
web2py-scheduler. Howewer with this tool you can't share objects betweeen 
processes like you do using the multiprocessing python module so 
synchronization might be an issue. There are other tools like for instance* 
huey* but i am not sure it's easy to integrate with web2py. In case this is 
feasible, i'd be interested in an Howto huey-web2py-integration :

https://huey.readthedocs.io/en/latest/

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.