Thank you ron_m!!! That worked more than fine!
On Wed, Jul 20, 2011 at 11:16 AM, ron_m wrote:
> Run 2 copies of web2py, one for the script and the other for the web site.
> If the database is SQLite you will end up with blocking problems if the
> background task takes too long.
>
Run 2 copies of web2py, one for the script and the other for the web site.
If the database is SQLite you will end up with blocking problems if the
background task takes too long.
Here is what the Book recommends:
python web2py.py -S app -M -N -R applications/app/private/myscript.py
OK, my script is working fine, but the problem is this, I'm launching this
script:
import time
print "Initializing booking daemon @_@"
while True:
allBookings = db(db.current_bookings).select()
for booking in allBookings:
if booking.project != 'foo':
print str(booki
I tried putting it into a controller, also as a separated file into private
folder
On Mon, Jul 18, 2011 at 8:36 PM, pbreit wrote:
> Where is this code located and how are you calling it? If it's in a
> controller, you may need to call bookings() with an argument.
>
> Did you review this:
>
>
Where is this code located and how are you calling it? If it's in a
controller, you may need to call bookings() with an argument.
Did you review this:
http://web2py.com/book/default/chapter/04?#Background-Processes-and-Task-Queues
6 matches
Mail list logo