1
0
mirror of synced 2026-01-08 21:05:13 -05:00
Files
airbyte/airbyte-integrations/bases/base-normalization/main_dev_transform_config.py
George Claireaux 7ba102b441 Add and persist job failures for Normalization (#14790)
* added TracedException and uncaught exception handler

* added trace message capturing

* added tests for TRACE messages

* pre-json logging

* propagating normalization failures

* log format json & fix hang

* parsing dbt json logs

* bump normalization version

* tests

* Benoit comments

* update trace exception user message

* review comments

* bump version

* bump version

* review comments

* nit comments

* add normalization trace failure test

* version bump

* pmd

* formatto

* bump version
2022-08-02 15:37:00 +01:00

22 lines
695 B
Python

#
# Copyright (c) 2022 Airbyte, Inc., all rights reserved.
#
import logging
from airbyte_cdk.exception_handler import init_uncaught_exception_handler
from airbyte_cdk.utils.traced_exception import AirbyteTracedException
from normalization.transform_config.transform import main
if __name__ == "__main__":
init_uncaught_exception_handler(logging.getLogger("airbyte"))
try:
main()
except Exception as e:
msg = (
"Something went wrong while normalizing the data moved in this sync "
+ "(failed to transform config for dbt project). See the logs for more details."
)
raise AirbyteTracedException.from_exception(e, message=msg)