def run(self):
self.log.info("Python Version: {}".format(sys.version_info))
is_success = True
try:
self.initial_action()
self.process_table()
self.log_info()
except SystemExit:
pass
except Exception:
if self.refresh_id:
self.schematizer.update_refresh(
self.refresh_id,
RefreshStatus.FAILED,
self.processed_row_count
)
# Sends an email containing the exception encountered.
self._email_exception_in_exception_context()
is_success = False
finally:
# We don't want to drop the blackhole table until the replication handler is using
# the schema_tracker database stably. (TODO: DATAPIPE-845)
# self.final_action()
if not is_success:
os._exit(1)
copy_table_to_blackhole_table.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录