diff options
author | Sergey Vilgelm <sergey@vilgelm.info> | 2015-06-23 07:33:25 +0200 |
---|---|---|
committer | Sergey Vilgelm <sergey@vilgelm.info> | 2015-07-17 17:05:44 +0300 |
commit | 08dc866fb241f535cce0609b02a34853882538f5 (patch) | |
tree | bc758c8a0c14ad7c1b3219353f28f1abdb390631 /trove/common/utils.py | |
parent | 3dcf406844b3313cc50c351f4a14e4eca2bf6cba (diff) | |
download | trove-08dc866fb241f535cce0609b02a34853882538f5.tar.gz |
Switch to oslo.service
oslo.service has graduated, so trove should consume it.
Remove a "ticks_between_runs" parameter from the periodic tasks.
All periodic_tasks will be executed with the same interval with the value of
the "report_interval" option.
According to the old default value of the "report_interval" option and
the value of the ticks_between_runs paramentr (3), increase
the "report_interval" option to the 30 seconds.
Rename the "exists_notification_ticks" option to the "exists_notification_interval"
and increase the default value of it to 3600, according to the old value of
the "report_interval" option.
DocImpact
The option name and default value of exists_notification_ticks was changed to
exists_notification_interval with 3600 sec. And the new default value of
the report_interval option is 30 sec. The deployers need to make sure that
the new values in the seconds, not in the ticks.
Change-Id: Id14d28146f677faf017160ac93289fd119674fc4
Depends-On: Ia5b887e69853f39b387d309831fb7ce51b881149
Closes-Bug: #1466851
Diffstat (limited to 'trove/common/utils.py')
-rw-r--r-- | trove/common/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trove/common/utils.py b/trove/common/utils.py index 77411094..285f4447 100644 --- a/trove/common/utils.py +++ b/trove/common/utils.py @@ -26,6 +26,7 @@ import uuid from eventlet.timeout import Timeout import jinja2 from oslo_concurrency import processutils +from oslo_service import loopingcall from oslo_utils import importutils from oslo_utils import strutils from oslo_utils import timeutils @@ -36,7 +37,6 @@ from trove.common import cfg from trove.common import exception from trove.common.i18n import _ from trove.openstack.common import log as logging -from trove.openstack.common import loopingcall CONF = cfg.CONF |