List Info

Thread: creating alerts




creating alerts
user name
2006-12-07 06:23:43
rkmr.emgmail.com wrote:
> i am trying to build an alert system where i
> want to send out e-mail alerts periodically
> (every 5 mins, 15 mins etc..)  until a specified
> time. this alert has to be created dynamically
> and i dont know this at the beginning of
> launching the python program. the alerts
> created is stored in a postgres database.
> what is the best way to do this?

Start a new threading.Timer to check the DB and send out
alerts. In most deployments, it should run on its own,
separately from any actual requests. If it's really
mission-critical, use a separate, supervised process.

I've got what I think is a nice Worker (and Scheduler) class
at http://proj
ects.amor.org/misc/wiki/Recur. There are other such
modules, of course; there's one in Turbogears that gets used
quite a bit.


Robert Brewer
System Architect
Amor Ministries
fumanchuamor.org


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en

-~----------~----~----~----~------~----~------~--~---
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )