I have an application I want to run on a virtual machine to update a database with data returned from an API every 15 minutes.
In researching the issue, it seems that the traditional approach is to use a scheduling library, etc (i.e. run task x every hour).
Is there anything inherently wrong with just using a recurring while loop and a time.sleep(900) delay? In other words, will it crash/ eat up too much ram/etc.. This program would run basically indefinitely on a virtual machine.
while True:
print('hello world')
time.sleep(900)