class myThread(threading.Thread): def __init__(self, task_file): threading.Thread.__init__(self) self.task_file = task_file self.task = GithubEventNoDB(task_file) def run(self): print "Starting " + str(self.task_file) self.task.runTask() print "Exiting " + str(self.task_file)
class myThread (threading.Thread): def __init__(self, task_file): threading.Thread.__init__(self) self.task_file = task_file self.task = GithubEventNoDB(task_file) def run(self): print "Starting " + str(self.task_file) self.task.runTask() print "Exiting " + str(self.task_file)
def test1(): task = { "name": "fake-event", "action_type": "loop", "start": 10000, "end": 10001, "logins": ["initlove"] } e1 = GithubEventNoDB(task) e1.runTask()
def __init__(self, task_file): threading.Thread.__init__(self) self.task_file = task_file self.task = GithubEventNoDB(task_file)
def event(task_file): r1 = GithubEventNoDB(task_file) r1.runTask()
def test1(): task = {"name": "fake-event", "action_type": "loop", "start": 10000, "end": 10001, "logins": ["initlove"]} e1 = GithubEventNoDB(task) e1.runTask()