So I'm trying to set up a scheduler, which makes calls to the module. Problem is, it keeps failing. And since it's the scheduler, it's super hard to debug if not almost impossible.
Within the module, it makes db calls. Now since db is a global variable, which module CANNOT access. I have to pass in db through its function calls. So I have that part figured out. My question is, when scheduler runs its function, does it have accses to the same global db instance that's a part of web2py? Since scheduler runs on its own process I have reason to believe whenever scheduler runs, it doesn't have access to db, request, etc. Any ideas on what's a good way of going about running a scheduler that calls a function in a module which makes calls to the database using the global db variable. -- 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.