Execute code every hour
Posted
by
Linger
on Programmers
See other posts from Programmers
or by Linger
Published on 2012-10-24T14:24:09Z
Indexed on
2012/10/24
17:14 UTC
Read the original article
Hit count: 427
I need to create a web service that executes every hour. It will be used to review data in a database and add alerts to a table in the same database if certain conditions are met/not met. What we currently have is:
We have end devices that use Python to report to an Amazon Web Services (AWS) virtual server. The AWS server takes that information and stores it in a MySQL database. The AWS server is Linux running Django and Apache. I need to be able to have some python code run every hour that verifies the data that has been stored by the end devices. If certain conditions are not met then a record will be added to the alerts
table in the database.
We originally contracted to have the above setup created. I am new to Python, Django, and Apache. However, I have already made several changes to the Python code that sends and also receives the data from the end devices. I am a coder that is breaking into web programming.
Does anyone have any recommendations on how I can do this?
© Programmers or respective owner