fix(ingest): fix build breakage due to traitlets 5.2.2 bug (#5051)

This commit is contained in:
Shirshanka Das 2022-05-31 14:42:56 -07:00 committed by GitHub
parent 08a5fcfd01
commit 83d9f7d6e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -531,8 +531,9 @@ def generate(
get_additional_deps_for_extra(extra_plugin) if extra_plugin else []
)
except Exception as e:
print(f"Failed to process {plugin_name} due to {e}")
metrics["plugins"]["failed"] = metrics["plugins"]["failed"] + 1
print(f"Failed to process {plugin_name} due to exception")
print(repr(e))
metrics["plugins"]["failed"] = metrics["plugins"].get("failed", 0) + 1
if source_type and hasattr(source_type, "get_config_class"):
try:

View File

@ -91,6 +91,9 @@ sql_common = {
"great-expectations>=0.14.11,<0.15.3",
# datahub does not depend on Jinja2 directly but great expectations does. With Jinja2 3.1.0 GE 0.14.11 is breaking
"Jinja2<3.1.0",
# datahub does not depend on traitlets directly but great expectations does.
# https://github.com/ipython/traitlets/issues/741
"traitlets<5.2.2",
"greenlet",
}