On Friday, February 24, 2017 at 8:50:52 AM UTC-8, klas....@gmail.com wrote:
>
> Dear community,
>
> I am working on a school project and my team is working with web2py.
>
> I have written a Python script that is supposed to run n background, 
> because it takes several minutes. First, I wanted to use Homemade Task 
> Queues, because they are simple and sufficient.
>
> But there is one problem: I need the background script checking the 
> database-queue to run simultaneously with the web server. But as the script 
> is executed with:
>
> web2py -S app -M -R path/to/queue_script.py
>
> I cannot start the web server at the same time (it just does not work).
>
> Another problem with the -S option is, that it (as far as I understand) 
> opens a shell. I want to run the server as a systemd service, but executing 
> web2py with -S option ends up with systemctl start to run into a timeout, 
> or just stay in the status "activating", without finishing starting.
>
> Is there a way to run the background script simultaneously with the web 
> server? And is there a way to run it in a way, that systemd finishes and 
> does not run into timeout?
>
> If not, is the web2py Task scheduler the best way to solve the problem?
>
> Thank you
>

See my answer in the other thread. 
<URL:https://groups.google.com/d/msg/web2py/aFD2OQGo9Bs/wsOqDH9SAQAJ>

/dps

-- 
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.

Reply via email to