heat_transfer_workers.py
def run(self):
        '''
        Initialise the runner function with passed args, kwargs.
        Running the function.
        '''

        # Retrieve args/kwargs here; and fire processing using them
        try:
            result = self.fn(*self.args, **self.kwargs)
        # In case of any exception transfer them as signals
        except Exception as e:
            print(e)
            traceback.print_exc()
            exctype, value = sys.exc_info()[:2]
            self.signals.error.emit((exctype, value, traceback.format_exc()))
        # If we did not encounter any exception, return the result
        else:
            self.signals.result.emit(result)
        # In any case return the finished signal
        finally:
            self.signals.finished.emit()

        Initialise the runner function with passed args, kwargs.
        Running the function.
        
Initialise the runner function with passed args, kwargs.
Running the function.
Initialise the runner function with passed args kwargs . Running the function .
def run(self):
        try:
            result = self.fn(*self.args, **self.kwargs)
        except Exception as e:
            print(e)
            traceback.print_exc()
            exctype, value = sys.exc_info()[:2]
            self.signals.error.emit((exctype, value, traceback.format_exc()))
        else:
            self.signals.result.emit(result)
        finally:
            self.signals.finished.emit()
def run ( self ) : try : result = self . fn ( * self . args , ** self . kwargs ) except Exception as e : print ( e ) traceback . print_exc ( ) exctype , value = sys . exc_info ( ) [ : 2 ] self . signals . error . emit ( ( exctype , value , traceback . format_exc ( ) ) ) else : self . signals . result . emit ( result ) finally : self . signals . finished . emit ( )
Initialise the runner function with passed args, kwargs.
Initialise the runner function with passed args kwargs .
'''
        Initialise the runner function with passed args, kwargs.
        Running the function.
        ''' # Retrieve args/kwargs here; and fire processing using them # In case of any exception transfer them as signals # If we did not encounter any exception, return the result # In any case return the finished signal
self