Merge "Sync periodic_task module from oslo-incubator"
This commit is contained in:
commit
50615d94f6
|
@ -11,13 +11,14 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import copy
|
||||
import random
|
||||
import time
|
||||
|
||||
from oslo.config import cfg
|
||||
import six
|
||||
|
||||
from cinder.openstack.common.gettextutils import _, _LE, _LI
|
||||
from cinder.openstack.common._i18n import _, _LE, _LI
|
||||
from cinder.openstack.common import log as logging
|
||||
|
||||
|
||||
|
@ -36,6 +37,11 @@ LOG = logging.getLogger(__name__)
|
|||
DEFAULT_INTERVAL = 60.0
|
||||
|
||||
|
||||
def list_opts():
|
||||
"""Entry point for oslo.config-generator."""
|
||||
return [(None, copy.deepcopy(periodic_opts))]
|
||||
|
||||
|
||||
class InvalidPeriodicTaskArg(Exception):
|
||||
message = _("Unexpected argument for periodic task creation: %(arg)s.")
|
||||
|
||||
|
|
Loading…
Reference in New Issue