HomeContact
Computerz
Using the web2py scheduler for long running jobs
René Dohmen
December 08, 2012
1 min

The info in the book describes the scheduler and favors it over cron; So I decided to use it for fetching the RSS feeds in one of our web apps.

Create a new model tasks.py

Now web2py will notice the call to Scheduler and it will create the needed tables. You can now use the app admin to enter the first task.

image0
image0

With your new task in there; you are almost ready. You can now start a new web2py instance that will run the tasks for you:

The -D15 indicates Debug loglevel-> 15 is info\</>

Output

You will see your tasks being scheduled; it will look like this:

image1
image1

Some quick links

More info

You will find a test case and some code here


Related Posts

Working with git submodules
October 15, 2023
3 min
© 2024, All Rights Reserved.
Powered by formatics

Quick Links

Advertise with usAbout UsContact Us

Social Media