Re: interacting django with external programs

2008-09-07 Thread Ned Batchelder
Well, the definition of "reasonable" depends on your system and environment really. Doing a database query once a minute for new work is no big deal, maybe even once a second, depending on how much other stuff you've got going on. In fact, maybe don't worry about the query for work at all: ch

Re: interacting django with external programs

2008-09-07 Thread David
Thanks Ned, and what about the case when it may be an unreasonable interval? is there any other way of interaction than crontab (eitherway, are they any example of this - as I've mentioned I am a complete newbie). Thx. On Sep 6, 10:03 pm, Ned Batchelder <[EMAIL PROTECTED]> wrote: > You're right:

Re: interacting django with external programs

2008-09-06 Thread Ned Batchelder
You're right: making a crontab entry for each user's needs would be cumbersome. But if you have a reasonable minimum interval (say 10 minutes), then write one cronjob that looks for all of the user's jobs that need to be run. Then you have one crontab entry, and the rest of the work is in yo

interacting django with external programs

2008-09-06 Thread David
Hey'a I have a newbie question. I want to execute an external (lets say python, but can be any) program given a interval set by a user (which would be in the user table). The external program would update the sql database. I thought of doing this with a cronjob but as they may be a number of use