def on_connect(): SMB.createStatusChannel() SMB.createJobsSender() handle_Dispatcher() #Call task dispatcher delegate.