Liam Young 00930c7419 Wrap db sync in tenacity retry
Switch the charm to retry db-sync. This is a precursor to having all
units run the db sync. If a table is locked by another unit the db
sync command hangs until the lock is released so the most likely
error condition is a command timeout.

Change-Id: I1605220b9f605c8d98859c705c8498328c05edd2
2023-02-27 10:12:54 +00:00

40 lines
1.0 KiB
Python

# -*- coding: utf-8 -*-
# Copyright 2021 Canonical Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Module used to setup the ops_sunbeam framework."""
from __future__ import print_function
from setuptools import setup, find_packages
version = "0.0.1.dev1"
install_require = [
'ops',
'tenacity',
]
tests_require = [
'tox >= 2.3.1',
]
setup(
license='Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0',
packages=find_packages(exclude=["unit_tests", "lib"]),
zip_safe=False,
install_requires=install_require,
)