Skip to content

Commit

Permalink
Looker crawler is failing without notifications [sc-30007]
Browse files Browse the repository at this point in the history
  • Loading branch information
alyiwang committed Dec 12, 2024
1 parent e7c3ad9 commit a99bcc6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions metaphor/looker/lookml_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,9 +627,14 @@ def parse_project(

for model_path in glob.glob(f"{base_dir}/**/*.model.lkml", recursive=True):
model_name = os.path.basename(model_path)[0 : -len(".model.lkml")]
raw_model, entity_urls, connection = _load_model(
model_path, base_dir, connections, projectSourceUrl
)

try:
raw_model, entity_urls, connection = _load_model(
model_path, base_dir, connections, projectSourceUrl
)
except Exception:
logger.exception(f"Failed to load model {model_path}")
continue

Check warning on line 637 in metaphor/looker/lookml_parser.py

View check run for this annotation

Codecov / codecov/patch

metaphor/looker/lookml_parser.py#L635-L637

Added lines #L635 - L637 were not covered by tests

resolved_model = _resolve_model(raw_model)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "metaphor-connectors"
version = "0.14.160"
version = "0.14.161"
license = "Apache-2.0"
description = "A collection of Python-based 'connectors' that extract metadata from various sources to ingest into the Metaphor app."
authors = ["Metaphor <[email protected]>"]
Expand Down

0 comments on commit a99bcc6

Please sign in to comment.