Пример #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)
Пример #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)
Пример #3
0
def test1():
    task = {
        "name": "fake-event",
        "action_type": "loop",
        "start": 10000,
        "end": 10001,
        "logins": ["initlove"]
    }

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

    e1 = GithubEventNoDB(task)
    e1.runTask()
Пример #7
0
 def __init__(self, task_file):
     threading.Thread.__init__(self)
     self.task_file = task_file
     self.task = GithubEventNoDB(task_file)
Пример #8
0
def event(task_file):
    r1 = GithubEventNoDB(task_file)
    r1.runTask()