Check error existance for the context manager handling (#757)
This commit is contained in:
@@ -293,7 +293,8 @@ class WorkflowRunContext:
|
||||
and isinstance(parameter.source, OutputParameter)
|
||||
and parameter.source.key == output_parameter.key
|
||||
):
|
||||
if isinstance(value, dict) and "errors" in value:
|
||||
if isinstance(value, dict) and "errors" in value and value["errors"]:
|
||||
# Is this the correct way to handle errors from task blocks?
|
||||
LOG.error(
|
||||
f"Output parameter {output_parameter.key} has errors. Setting ContextParameter {parameter.key} value to None"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user