python - Render in infinity loop -


Question for Python 2.6

I would like to make an simple web application Which will execute a script in the specified time interval which will modify the data (in the database). My problem is the code for infinity loop or any other method to achieve this goal, the script should be run only by the user once. The next iterations should be run automatically, even if the user leaves the app if someone has an idea for ways to detect app brakes, it would be great to also show that threads have to get it The best way can be, unfortunately, I just started my adventure with Python and I do not know about it yet.

You will also see the Show database and loop script in the app.

Any thoughts?

You have mentioned that you are using Google App Engine, you have a < You can schedule recurring tasks by placing the file> code> cron.yaml . There are details.

Update : It looks like you are not looking for GAE-specific solutions, so the more general advice I give is to use the local scheduling capabilities The platform you are using * Nix host on Coron jobs, scheduled tasks on Windows, cron.yaml etc. on GAE

In your other comments, you want to do something in the dragon, do not leave your script executed, and I do not think there is any way to do this. Some process should be responsible for killing whatever you need, or you do it in Python and perform an action (even if it is just sleeping ing) Or you use platform scheduling tool. The OS is guaranteed to work better than your code.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -