In a development environment you might want to run
when you are developing or testing one of your applications.
Usage for developers¶
$ . env/bin/activate $ pip install schedule
Now you simply go to your project directory and invoke the admin command:
$ cd ~/projects/mysite $ python manage.py linod
This process will run as long as you don't kill it, e.g. until you hit Ctrl-C.
What it does¶
linod command is responsible for running the scheduled
background jobs defined by your application. This includes for
Send out emails for notifications
You can see a list of these jobs by running:
$ cd ~/projects/mysite $ python manage.py linod --list
Applications can register these jobs either using the schedule API
directly, but Lino itself differentiates two types of background
tasks: "often" and "daily".