Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
def test1():
    task = {
        "name": "fake-event",
        "action_type": "loop",
        "start": 10000,
        "end": 10001,
        "logins": ["initlove"]
    }

    e1 = GithubEventNoDB(task)
    e1.runTask()
Exemplo n.º 4
0
 def __init__(self, task_file):
     threading.Thread.__init__(self)
     self.task_file = task_file
     self.task = GithubEventNoDB(task_file)
Exemplo n.º 5
0
def event(task_file):
    r1 = GithubEventNoDB(task_file)
    r1.runTask()
Exemplo n.º 6
0
def test1():
    task = {"name": "fake-event", "action_type": "loop", "start": 10000, "end": 10001, "logins": ["initlove"]}

    e1 = GithubEventNoDB(task)
    e1.runTask()
Exemplo n.º 7
0
 def __init__(self, task_file):
     threading.Thread.__init__(self)
     self.task_file = task_file
     self.task = GithubEventNoDB(task_file)
Exemplo n.º 8
0
def event(task_file):
    r1 = GithubEventNoDB(task_file)
    r1.runTask()