The observer class looks interesting, and I may use it in a project I’m
working on, but I don’t think the situation I had could use Observer.
Basically, the app is an Ebay-style auction site. I have lots which have
an expiration time and a status. My daemon goes and queries the database
for lots that are “Open” but whose end time has passed. If it finds one,
it closes the lot, logs a purchase and sends emails to the buyer and
It is really clunky having an external process like that running, and a
bit unreliable - the app could be running fine, but without the daemon,
lots will never get properly closed and no one will get emails about
If you know of any other way to implement something like this, I’d be
happy to hear about it.