I have a file job.py under models. 
In that I have 
def send_email_invites(): 
I added a task that says job/send_email_invites. The task errors out saying 
Traceback (most recent call last):
  File "/var/www/web2py/gluon/scheduler.py", line 229, in executor
    "name '%s' not found in scheduler's environment" % f)
NameError: name 'jobs/send_email_invites' not found in scheduler's 
environment

I started the scheduler like this 
python  /var/www/web2py/web2py.py -K myapp  -D 0 
Which is the right way of pointing to a function in a file under models?

-- 
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/groups/opt_out.

Reply via email to