Hi
I have the following scenario:
A scheduled task runs every T seconds (e.g. 60), and executes a function F()
In function F() I scan some db tables and according to the business logic, may need to send several email messages.
1. How can the worker process access the mailer object? I think it cannot be passed in the queue_task()
2. "At the time of writing web2py does not support attachments and encrypted emails on Google App Engine. Notice cron and scheduler do not work on GAE." Is this still true? If yes, I should keep away from the scheduler.
3. scheduler workers doing work in parallel: "As noted in Chapter 4, this type of background process should not be executed via cron (except perhaps for cron @reboot) because you need to be sure that no more than one instance is running at the same time."
-- so if I need to send 5 emails, they have to be serialized ? why?
4. Why are old tasks kept in table scheduler_run ? are they purged automatically or I have to delete them manually?
* I DID read the other posts on this topic before writing my own...
(running v 2.12.3)
Thanks!
Noam C.