From e672125e82f58665a22a6d924bac1a83e7a3d0c3 Mon Sep 17 00:00:00 2001 From: Will Eaton Date: Mon, 20 Nov 2023 18:47:49 -0500 Subject: [PATCH] add log --- cosmos/operators/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cosmos/operators/base.py b/cosmos/operators/base.py index 2072cf22d..62d830116 100644 --- a/cosmos/operators/base.py +++ b/cosmos/operators/base.py @@ -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)