mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
feat: improve docker-compose services boot sequence (#31747)
This commit is contained in:
committed by
GitHub
parent
5f18e849c1
commit
7bd53a84d5
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user