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()