This Page

The quantum.openstack.common.periodic_task Module

class quantum.openstack.common.periodic_task.PeriodicTasks

Bases: object

run_periodic_tasks(context, raise_on_error=False)

Tasks to be run at a periodic interval.

quantum.openstack.common.periodic_task.periodic_task(*args, **kwargs)

Decorator to indicate that a method is a periodic task.

This decorator can be used in two ways:

  1. Without arguments '@periodic_task‘, this will be run on every tick of the periodic scheduler.
  2. With arguments, @periodic_task(ticks_between_runs=N), this will be run on every N ticks of the periodic scheduler.