Running linod

In a development environment you might want to run linod when you are developing or testing one of your applications.

Usage for developers

Before running linod for the first time, you need to install the Python package schedule written by Daniel Bader:

$ . env/bin/activate
$ pip install schedule

Now you simply go to your project directory and invoke the admin command:

$ cd ~/projects/mysite
$ python linod

This process will run as long as you don't kill it, e.g. until you hit Ctrl-C.

What it does

The linod command is responsible for running the scheduled background jobs defined by your application. This includes for example:

You can see a list of these jobs by running:

$ cd ~/projects/mysite
$ python 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". dd.api.schedule_often() dd.api.schedule_daily()