houqp commented on a change in pull request #10917:
URL: https://github.com/apache/airflow/pull/10917#discussion_r539914316
##########
File path: airflow/models/taskinstance.py
##########
@@ -105,6 +107,29 @@ def set_current_context(context: Context):
)
+def load_error_file(fd: IO[bytes]) -> Optional[Union[str, Exception]]:
+ """Load and return error from error file"""
+ fd.seek(0, 0)
Review comment:
this is important, no magic number allowed :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]