def run(self, **kwargs): logger = self.get_logger() logger.info('TASK :: run_cdr_import') # launch the CDRs import (status, msg) = import_cdr(shell=False, logger=logger) logger.info('TASK RESULT :: call function import_cdr (%s)' % str(msg)) return True
def handle(self, *args, **options): import_cdr(shell=True)