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

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

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