>
> 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
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
2 matches
Mail list logo