Comment 2 for bug 1274317

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/70954
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=70f7761e6f053297266fd5cc63212e74e73ec1cc
Submitter: Jenkins
Branch: master

commit 70f7761e6f053297266fd5cc63212e74e73ec1cc
Author: Matthew Gilliard <email address hidden>
Date: Tue Feb 4 10:59:34 2014 +0000

    Specify spacing on periodic_tasks in manager.py

    Some methods in compute/manager.py were using the @periodic_task
    decorator to ensure they were called regularly, but were not passing
    in the `spacing` kwarg. In this case the method can only be called at
    the default rate, calculated as min(60 seconds, <spacings from all
    periodic_tasks>), regardless of the poll interval set in config.

    Although there was throttling code which prevented the methods from
    executing too often, the case where we do want the method to execute
    very often was missed. This patch ensures that setting the config
    values low will cause the method to be called as frequently.

    Change-Id: I1530c8b3b6ac71f4d9e2e41188c0eca4a6556e01
    Closes-Bug: #1274317