Check error existance for the context manager handling (#757)

This commit is contained in:
Kerem Yilmaz 2024-08-29 21:25:10 +03:00 committed by GitHub
parent 9e0201627b
commit 6f61573f9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"
)