human
Solve the following python programming problem given the following code:
def launchTask(self, driver, task) : 
    '
        Invoked by SchedulerDriver when a Mesos task should be launched by this executor
        ' 
    def runTask() : 
        log.debug ('Running task %s', task.task_id.value) 
        sendUpdate (mesos_pb2.TASK_RUNNING) 
        taskData = pickle.loads (task.data) 
        if (self.workerCleanupInfo is not None) : 
            assert (self.workerCleanupInfo == taskData.workerCleanupInfo) 
else : 
            self.workerCleanupInfo = taskData.workerCleanupInfo 
startTime = time () 
        try : 
            popen = runJob (taskData) 
            self.runningTasks [task.task_id.value] = popen.pid 
            try : 
                exitStatus = popen.wait () 
                wallTime = (time () - startTime) 
                if (0 == exitStatus) : 
                    sendUpdate (mesos_pb2.TASK_FINISHED, wallTime) 
else : 
                    if ((- 9) == exitStatus) : 
                        sendUpdate (mesos_pb2.TASK_KILLED, wallTime) 
else : 
                        sendUpdate (mesos_pb2.TASK_FAILED, wallTime, message = str (exitStatus)) 
finally : 
                del self.runningTasks [task.task_id.value] 
except : 
            wallTime = (time () - startTime) 
            exc_info = sys.exc_info () 
            log.error ('Exception while running task:', exc_info = exc_info) 
            (exc_type, exc_value, exc_trace) = exc_info 
            sendUpdate (mesos_pb2.TASK_FAILED, wallTime, message = ''.join (traceback.format_exception_only (exc_type, exc_value))) 
def runJob(job) : 
        '
            :type job: toil.batchSystems.mesos.ToilJob

            :rtype: subprocess.Popen
            ' 
        if job.userScript : 
            job.userScript.register () 
log.debug ("Invoking command: '%s'", job.command) 
        with self.popenLock : 
            return subprocess.Popen (job.command, shell = True, env = dict (os.environ, ** job.environment)) 
def sendUpdate(taskState, wallTime = None, message = '') : 
        log.debug ('Sending task status...

    
    

    Fix the buggy line: thread = threading.Thread (target = runJob)
assistant
#Here is Python program to fix the buggy line: thread = threading.

thread = threading.Thread (target = def runTask()