-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(ingest): defer ctx.graph initialization #10504
Conversation
try: | ||
return self.get(key) | ||
except Exception: | ||
return None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't there a nicer way to get None instead of a silently caught exception?
Do we care about the exception or is it fine to drop silently?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in this case, we don't care about the exception
raise IgnorableError( | ||
f"Datahub ingestion reporter will be disabled because sink type {sink_config_holder.type} is not supported" | ||
f"Datahub ingestion reporter will be disabled because sink type {type(sink)} is not supported" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks a bit weird we use a hardwired list for this, and not the sink has some property which can tell if it supports reporter or not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I don't really like the way this is set up either, but don't want to boil the ocean right now
Checklist