wolfdn commented on code in PR #33914: URL: https://github.com/apache/airflow/pull/33914#discussion_r1314477649
########## airflow/providers/docker/operators/docker.py: ########## @@ -44,6 +44,30 @@ from airflow.utils.context import Context +class DockerContainerFailedException(AirflowException): + """ + Raised when a Docker container returns an error. + + :param logs: The log output of the failed Docker container + """ + + def __init__(self, message: str | None = None, logs: list[str | bytes] | None = None): + super().__init__(message) + self.logs = logs + + +class DockerContainerFailedSkipException(AirflowSkipException): + """ + Raised when a Docker container returns an error and task should be skipped. + + :param logs: The log output of the failed Docker container + """ + + def __init__(self, message: str | None = None, logs: list[str | bytes] | None = None): + super().__init__(message) + self.logs = logs Review Comment: Just extracted those exceptions into a separate file. -- 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. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org