Web2py comes with a built-in cron to run schedule time the same idea of Unix cron.
However, the documentation lacks a simple example to follow, so here I give you a very basic one. :-)
Let's add a Python script to run every minute, so add this to your application crontab:
# please fix the path of your script, basically put your application name
0-59/1 * * * * root *applications/instore/modules/background_updater.py
Add in your application a file background_updater.py inside the modules folder, where is the file isn't important.
# File: background_updater.py
import time def main(): print 'Checking for updates...' time.sleep(5) # Do what ever you want to do in python # long duration HTTP requests # FTP Access, download to local, untar, unzip, copy, move, # In this poor example, just sleeping for 5 seconds print 'Updated finished! :-)' if __name__ == '__main__': main()