[web2py] Re: Background process

2016-04-26 Thread Paolo Amboni
I'm not sure if i get your question right, but try the Scheduler. I've done a project that retrieve light, humidity and temperature from an arduino and store in a sqlite db on the server and it works fine. You also don't need a real time clock on the arduino. Il giorno giovedì 14 aprile 2016 06:

[web2py] Re: Background process scheduler and GAE

2012-02-02 Thread Douglas Ross
Thanks very much, I will have a look. Doug On Feb 2, 10:22 am, howesc wrote: > use the GAE taskqueues for background processes.  i also recommend looking > at GAE backend instances for background tasks.

[web2py] Re: Background process scheduler and GAE

2012-02-01 Thread howesc
use the GAE taskqueues for background processes. i also recommend looking at GAE backend instances for background tasks.

Re: [web2py] Re: Background process not working...

2011-05-27 Thread pbreit
I like to try to get my crons and background processes working in a controller first since it's easier to debug. Also, you might try writing the response to mail.send to the DB to see if there are any errors. I'm not sure that "== False" is the best way to query since False has special properti

Re: [web2py] Re: Background process not working...

2011-05-27 Thread Jason Brower
At least requesting a new password works. I assume it uses those settings as well. BR, Jason Brower On 05/27/2011 04:30 PM, Anthony wrote: Are you sure you have configured Mail properly? See http://web2py.com/book/default/chapter/08#Auth-and-Mail. Are you able to send an email from a controll

[web2py] Re: Background process not working...

2011-05-27 Thread Anthony
Are you sure you have configured Mail properly? See http://web2py.com/book/default/chapter/08#Auth-and-Mail. Are you able to send an email from a controller? On Friday, May 27, 2011 9:05:00 AM UTC-4, encompass wrote: > I am running this: > > python web2py.py -S welcome -M -N -R > applic

[web2py] Re: background process

2010-04-28 Thread Jose
On 28 abr, 20:39, Jose wrote: > One more question. > > The model is imported with-M, but I do not know is how to pass session > to the script. > > Jose I answer myself. I used pickle. Jose

[web2py] Re: background process

2010-04-28 Thread Jose
One more question. The model is imported with-M, but I do not know is how to pass session to the script. Jose

[web2py] Re: background process

2010-04-28 Thread Jose
If anyone else may need it, the code is this and it works fine. The only difference is that the script had to do an explicit commit. def procesar(): import subprocess import os script = os.path.join(request.folder, 'private', 'script.py') comando = "python %s/web2py.py -S py_ccu -M

[web2py] Re: background process

2010-04-28 Thread Jose
On 28 abr, 18:31, Jose wrote: > > Running the script as you said, how to access the same to application > context: db, session, etc. I said nothing, I just read the output of python web2py.py -h Jose

[web2py] Re: background process

2010-04-28 Thread howesc
i like massimo's idea of using cron...but if you need it to be launched by the user perhaps you setup cron to run at small intervals and have the job simply check if the user has requested work, and then do the work. i suspect that is much easier than getting the threading right. cfh On Apr 28,

[web2py] Re: background process

2010-04-28 Thread Jose
On 28 abr, 16:11, mdipierro wrote: > Do not use threads for background processes. Use an actual seperate > process > > python web2py.py -S app -M -R applications/app/private/ > process_script.py > > You can have it start by web2py cron > A cron do not need it, since it must be the user who laun

[web2py] Re: background process

2010-04-28 Thread mdipierro
Do not use threads for background processes. Use an actual seperate process python web2py.py -S app -M -R applications/app/private/ process_script.py You can have it start by web2py cron On Apr 28, 11:30 am, Jose wrote: > Hello, > > I am developing a web application that contains at least three