File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 115
115
-- commit each period as a separate transaction
116
116
{% for i in range(num_periods) - %}
117
117
{%- set msg = " Running for " ~ period ~ " " ~ (i + 1 ) ~ " of " ~ (num_periods) - %}
118
- {{log( " + " ~ modules . datetime . datetime . now ().strftime( ' %H:%M:%S ' ) ~ " " ~ msg, info = True) }}
118
+ {{ dbt_utils . log_info ( msg) }}
119
119
120
120
{%- set tmp_identifier = model[' name' ] ~ ' __dbt_incremental_period' ~ i ~ ' _tmp' - %}
121
121
{%- set tmp_relation = api .Relation .create(identifier= tmp_identifier,
147
147
{%- if loop_vars .update ({' sum_rows_inserted' : sum_rows_inserted}) %} {% endif - %}
148
148
149
149
{%- set msg = " Ran for " ~ period ~ " " ~ (i + 1 ) ~ " of " ~ (num_periods) ~ " ; " ~ rows_inserted ~ " records inserted" - %}
150
- {{log( " + " ~ modules . datetime . datetime . now ().strftime( ' %H:%M:%S ' ) ~ " " ~ msg, info = True) }}
150
+ {{ dbt_utils . log_info ( msg) }}
151
151
152
152
{%- endfor %}
153
153
You can’t perform that action at this time.
0 commit comments