'Mark task done'

def done(self, taskid):

    if (taskid in self.processing):
        self.mutex.acquire()
        if (taskid in self.processing):
            del self.processing[taskid]
        self.mutex.release()
        return True
    return False
