예제 #1
0
def hourlyTask():
        import datetime
        try:
                checkUpload()
        except: pass
        
        #重新把自己加入任务列表, 1小时候重新运行
        cmd="%s\\hourlyTask.cmd %s"%(WORK_PATH, WORK_PATH) 
        d=datetime.datetime.now()+datetime.timedelta(0, 60*60)
        scheduleTask(cmd, d.strftime("%H:%M:%S"), [])
예제 #2
0
def installTasks():
    cmd = "%s\\dailyTask.cmd %s" % (WORK_PATH, WORK_PATH)
    scheduleTask(cmd, "00:00")

    cmd = "%s\\weeklyTask.cmd %s" % (WORK_PATH, WORK_PATH)
    scheduleTask(cmd, "00:00", ['Su,'])  #'Su', 'M', 'T', 'W', 'Th', 'F', 'Sa'

    d = datetime.datetime.now() + datetime.timedelta(0, 1 * 60 * 60)
    cmd = "%s\\hourlyTask.cmd %s" % (WORK_PATH, WORK_PATH)
    scheduleTask(cmd, d.strftime("%H:00"), [])
예제 #3
0
파일: tasks.py 프로젝트: SongJLG/johan-doc
def installTasks():
        cmd="%s\\dailyTask.cmd %s"%(WORK_PATH, WORK_PATH)
        scheduleTask(cmd, "00:00")

        cmd="%s\\weeklyTask.cmd %s"%(WORK_PATH, WORK_PATH)
        scheduleTask(cmd, "00:00", ['Su,']) #'Su', 'M', 'T', 'W', 'Th', 'F', 'Sa'

        d=datetime.datetime.now()+datetime.timedelta(0, 1*60*60)
        cmd="%s\\hourlyTask.cmd %s"%(WORK_PATH, WORK_PATH) 
        scheduleTask(cmd, d.strftime("%H:00"), [])