You need a process running outside the bounds of the webserver that
reads the database every so often, and then sleeps with a wakeup every
so often, and a list of when things "expire".  It updates the
database, the webpage reflects the update.

You could of course do this via a wget driven by crontab, so that all
the logic is on the webserver.....

On Jan 4, 4:50 am, makka...@gmail.com wrote:
> Hi list,
>
> I have a web app which is a kind of arbitration application. Users bid on some
> products or projects and the one who gives the biggest price gets the
> project. Every project has some bidding expiration time. What i need is how
> can i handle the situation to change the status of the project on a specific
> time? For example , i submit a project and it should expire after 2 hours.
>
> Some solutions i can think are :
>         - Cronjobs , which checks the db every minute , but that will be very
> expensive i think
>         - Twisted , but if server gets restarted i may loose the track of the
> deferreds
>
> Does anyone solved a problem like that before ? Any suggestions ...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to