Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
wseaton authored and Will Eaton committed Nov 20, 2023
1 parent e892aca commit e672125
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cosmos/operators/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,5 +236,7 @@ def build_cmd(
return dbt_cmd, env

def pre_execute(self, context: Any):
context["model_config"] = self.extra_context
if self.extra_context:
logger.info("Extra context passed to operator, injecting into TaskInstance")
context["model_config"] = self.extra_context
return super().pre_execute(context)

0 comments on commit e672125

Please sign in to comment.