fix(workflow): render jinja variables with actual values in non-strict mode

This commit is contained in:
mengyonghao
2026-01-13 15:10:01 +08:00
parent 592c2ac217
commit 9427584825

View File

@@ -38,7 +38,11 @@ class JinjaRenderNode(BaseNode):
context = {}
for variable in self.typed_config.mapping:
context[variable.name] = self._render_template(variable.value, state)
try:
context[variable.name] = self.get_variable(variable.value, state)
except Exception:
logger.info(f"variable not found, var: {variable.value}")
continue
try:
res = render.env.from_string(self.typed_config.template).render(**context)