data_deletion/__init__.py
def run(self):
        """Runs self.delete_data with exception handling and notifications."""
        try:
            self.delete_data()
        except Exception as e:
            etype, value, tb = sys.exc_info()
            stacktrace = ''.join(traceback.format_exception(etype, value, tb))
            self.critical('Encountered a %s exception: %s. Stacktrace below:\n%s', e.__class__.__name__, e, stacktrace)
            self.ntf.notify_all(stacktrace)
            executor.stop_running_jobs()
            sys.exit(9)
Runs self.delete_data with exception handling and notifications.
Runs self.delete_data with exception handling and notifications.
Runs self . delete_data with exception handling and notifications .
def run(self):
        try:
            self.delete_data()
        except Exception as e:
            etype, value, tb = sys.exc_info()
            stacktrace = ''.join(traceback.format_exception(etype, value, tb))
            self.critical('Encountered a %s exception: %s. Stacktrace below:\n%s', e.__class__.__name__, e, stacktrace)
            self.ntf.notify_all(stacktrace)
            executor.stop_running_jobs()
            sys.exit(9)
def run ( self ) : try : self . delete_data ( ) except Exception as e : etype , value , tb = sys . exc_info ( ) stacktrace = '' . join ( traceback . format_exception ( etype , value , tb ) ) self . critical ( 'Encountered a %s exception: %s. Stacktrace below:\n%s' , e . __class__ . __name__ , e , stacktrace ) self . ntf . notify_all ( stacktrace ) executor . stop_running_jobs ( ) sys . exit ( 9 )
Runs self.delete_data with exception handling and notifications.
Runs self . delete_data with exception handling and notifications .
"""Runs self.delete_data with exception handling and notifications."""
self