]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
sync periodic_task fix from incubator
authorTom Cammann <tom.cammann@hp.com>
Fri, 4 Jul 2014 08:22:46 +0000 (09:22 +0100)
committerTom Cammann <tom.cammann@hp.com>
Mon, 7 Jul 2014 08:46:43 +0000 (08:46 +0000)
commit51e0b5b5152b9e85a4297308ecc3b653e29e8c18
treeab45ad067f91658c1c878a9da5ae3757221d01ac
parent5a217881fbebf7b409344ee3763a14ba86cbc28b
sync periodic_task fix from incubator

Set the value of time the periodic task was last run to a multiple of
the spacing value rather than the actual last time run. This ensures
tasks runs regularly but avoids synchronizing that interval with other
nodes.

This patch also removes the coalescing of tasks which are _nearby_ (0.2
seconds away).

Changes:

periodic_task
-------------
4dbd3aa Make periodic tasks run on regular spacing interval
21249f1 Fix parenthesis typo misunderstanding in periodic_task

Change-Id: I6c06ae73b18d4425a987a215a050bc70335e490e
cinder/openstack/common/periodic_task.py