Hello Tim, On Dec 12, 2:58 pm, Tim Daniel <redarrow...@hotmail.com> wrote:
> Solution A: Have a datetime field with an expiry date and say every 10 > minutes a cron job checks the DB table for expired entries and > performs the programed action. I've used solution A in combination with custom management commands. Works pretty well. I send emails to the user for notification. > Solution B: Have an event triggered cronjob that only executes once > and is created from Django(Python), after the 2 hours passed it > performs the programmed action only on the required entry. > > So how can I implement solution B? Is there a posibility to create a > cron on a user action that executes only one time? You might see if you could use the at command in combination with a custom management command. Let us know if you go with B and how it turns out. Toodle-loooooooooo.......... creecode -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.