they should be separated.... and they are separated from what I see in the code..... the db connection of the scheduler is on the main thread while the one used by the task is inside the spawned process (the executor() function). I don't see connections shared between the two.
On Monday, December 16, 2013 10:29:41 PM UTC+1, Yassen D. wrote: > > Issue resolved. The source of all trouble was that the Scheduler uses the > same db connection as the task it executes. Thus output updates (print > '!clear!%(progress)s' % progress) changes the connection status, randomly, > hence the strange exceptions. > > Suggestion: explicitly mention this as a gotcha in the scheduler section > of the w2p book. > > Cheers, > Yassen > -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

