Dear community,

I am working on a school project, using web2py. I have a Python script, 
that should be run in background, because it takes several minutes.

First, I tried using Homemade Task Queues, because they were simple and 
sufficient. But the problem is, to run the script checking the queue, one 
needs to execute web2py with command line:

web2py -S app -M -R path/to/queue_script.py

There are to problems:

   1. I need to run the web server simultaneously (-a option), but that 
   doesn't work (web2py -a password -S app -M -R ... doesn't work at all)
   2. I want to install web2py as a systemd service running in background. 
   As far as I understand, the -S option opens a shell, which means, that 
   systemd either runs into timeout, or it gets stuck in "activating" state, 
   never finishing starting the service...

My question: Is there a way to run Homemade task queues simultaneously to 
the web server and without a shell (which lets systemd run into timeout)? 
Or should I change to the more complex web2py Task scheduler?

Thank you

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