-
Notifications
You must be signed in to change notification settings - Fork 288
Conversation
@@ -72,3 +72,8 @@ def get_timestamp(_match): | |||
return datetime.now().isoformat("_", "seconds").replace(":", "_") | |||
|
|||
return re.sub("%t", get_timestamp, name) | |||
|
|||
|
|||
def truncate_error(error: str): |
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.
moved this from diff_tables.py so I can reuse it
@@ -85,12 +85,14 @@ def create_start_event_json(diff_options: Dict[str, Any]): | |||
def create_end_event_json( | |||
is_success: bool, | |||
runtime_seconds: float, | |||
db1: str, | |||
db2: str, | |||
data_source_1_type: str, |
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.
I changed these two just because I found the names confusing/misleading
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.
non-blocking: I'll need to update downstream reporting
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.
this just impacts the python code, the actual event is not affected
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.
oh I see, still "data_source_1_type" 👍
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.
@dlawin Looks okay to me. Did you run black? |
Done |
Adds new events for the
--cloud
optionSets a new entrypoint
CLI-dbt
for--dbt
and--cloud
Added additional parameters to end_event in order to differentiate
--cloud
eventsMost of the information is hardcoded to 0/None/etc. on the end event as we don't currently have the related information. Since I think it's likely we will be adding polling and diff results for
--cloud
in the near future, I thought it made sense to reuse the existing event structure.