feat: improve docker-compose services boot sequence (#31747)

This commit is contained in:
Maxime Beauchemin
2025-01-09 16:24:53 -08:00
committed by GitHub
parent 5f18e849c1
commit 7bd53a84d5
28 changed files with 205 additions and 88 deletions

View File

@@ -14,6 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
import logging
import pandas as pd
import polyline
@@ -26,6 +27,8 @@ from superset.utils import json
from ..utils.database import get_example_database
from .helpers import get_example_url, get_table_connector_registry
logger = logging.getLogger(__name__)
def load_bart_lines(only_metadata: bool = False, force: bool = False) -> None:
tbl_name = "bart_lines"
@@ -56,7 +59,7 @@ def load_bart_lines(only_metadata: bool = False, force: bool = False) -> None:
index=False,
)
print(f"Creating table {tbl_name} reference")
logger.debug(f"Creating table {tbl_name} reference")
table = get_table_connector_registry()
tbl = db.session.query(table).filter_by(table_name=tbl_name).first()
if not tbl: