[web2py] Re: Homemade Task Queues

2013-08-21 Thread at
Trying to run following script inside a controller: python web2py.py -S myapp -M -N -R applications/myapp/private/alerts.py -A 1 2 3 and getting: SyntaxError: invalid syntax at web2p*y*.py Can someone assist please. Thanks & Regards AT -- --- You received this message because you are sub

[web2py] Re: Homemade Task Queues

2013-08-21 Thread at
I've just realized that this script is supposed to be run outside the web2py application and it would work as if it was inside the application controller, am I right? Is there any way to invoke a controller function or webservice asynchroously, from another controller function? Thanks On Wed

[web2py] Re: Homemade Task Queues

2012-06-30 Thread Massimo Di Pierro
Source distribution: >From the main web2py folder python web2py.py -S app -M -N -R path/to/myscript.py -A a b c Binary distribution (windows): web2py.exe -S app -M -N -R path/to/myscript.py -A a b c myscript.py can be anywhere as long as path/to is its absolute path or relative path from the p

[web2py] Re: Homemade Task Queues

2012-07-05 Thread mehta
Hi, Here when i run the above command , it says 'application could not be found'. But, i double checked , that folder is there and also it appears when I run the admin interface. Are there any naming conventions that for which I have to take care about? Thanks, Harsh Mehta On Saturday, 30 Jun

[web2py] Re: Homemade Task Queues and Web server simultaneously

2017-02-24 Thread Dave S
On Friday, February 24, 2017 at 8:50:56 AM UTC-8, klas@gmail.com wrote: > > 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 t

[web2py] Re: Homemade Task Queues and Web server simultaneously

2017-02-24 Thread Dave S
On Friday, February 24, 2017 at 11:51:58 AM UTC-8, Dave S wrote: > > On Friday, February 24, 2017 at 8:50:56 AM UTC-8, klas@gmail.com > wrote: >> >> Dear community, >> >> I am working on a school project, using web2py. I have a Python script, >> that should be run in background, because it

[web2py] Re: Homemade Task Queues and Web server simultaneously

2017-02-24 Thread Anthony
On Friday, February 24, 2017 at 11:50:56 AM UTC-5, klas.eq...@gmail.com wrote: > > 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, becau

[web2py] Re: Homemade Task Queues and Web server simultaneously

2017-02-27 Thread klas . equiz
Thank you for your answers. But still: What about the second point? Running the shell to start the background script is a process that never ends, thus systemd stays in "activating" state, because the action is never finished. And I guess it's not a good practice for a daemon to keep starting b

[web2py] Re: Homemade Task Queues and Web server simultaneously

2017-02-28 Thread Anthony
On Monday, February 27, 2017 at 5:13:51 PM UTC-5, klas.eq...@gmail.com wrote: > > Thank you for your answers. > > But still: What about the second point? Running the shell to start the > background script is a process that never ends, thus systemd stays in > "activating" state, because the actio

[web2py] Re: Homemade Task Queues and Web server simultaneously

2017-02-28 Thread klas . equiz
I just found the solution: just create another systemd service for the background task. Before I was using ExecStartPost= in the web2py-service, which created timeouts. Now it works perfectly. Anyway, thank you for your effort -- Resources: - http://web2py.com - http://web2py.com/book (Documen