From 3b6836e9c712e7cfece2022b688039921aa2cdbf Mon Sep 17 00:00:00 2001 From: Mike Davis Date: Wed, 28 Apr 2021 12:19:11 -0400 Subject: [PATCH] rex.mart: submit mart build exceptions to sentry --- src/rex.mart/src/rex/mart/ctl.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rex.mart/src/rex/mart/ctl.py b/src/rex.mart/src/rex/mart/ctl.py index 556d0e0eb..502578af7 100644 --- a/src/rex.mart/src/rex/mart/ctl.py +++ b/src/rex.mart/src/rex/mart/ctl.py @@ -12,7 +12,7 @@ from htsql.ctl import HTSQL_CTL from htsql.ctl.error import ScriptError from rex.db.ctl import RexShellRoutine -from rex.core import Error, get_packages +from rex.core import Error, get_packages, get_sentry from rex.ctl import RexTask, argument, option, log from rex.ctl.common import pair @@ -127,6 +127,8 @@ def __call__(self): ) ) + get_sentry().captureException(sync=True) + # Do what we can to force a cleanup of broken HTSQL # instances that may be stuck in tracebacks, etc. gc.collect()