[web2py] Re: how to correctly use the scheduler (if at all)

2016-03-06 Thread noam cohen
> > Here is the summary of what I came up with, if anyone has similar > situation. > modules/long_task.py: def nwm_send_email(mailer,*args,**kwargs): """Send an email using the supplied dict args. This function is called by the scheduler""" args = args[1] # the first element is

[web2py] Re: how to correctly use the scheduler (if at all)

2016-03-02 Thread Niphlod
let's go in order: 1. the scheduler env is the same as your app's. As long as the mailer is defined and working for the app, you can use it in a queued task 2. as there's no way to let an external process live, and the scheduler being a totally separate process from the web-related one, the sche