Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c89116c

Browse files
authored
修复计划任务中,仅一次设定的问题
1 parent c41a374 commit c89116c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/task.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ def TaskFunc(self,data,delete = False):
9191

9292
def CreatTask(self,data,writeToSql=True):
9393
interval = self.GetNextTaskSenc(data)
94+
if interval < 0:
95+
return True
9496
data['nextRunTime'] = time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time()+int(interval)))
9597
if interval >= self.maxSetTime:
9698
data['needCheck'] = 'T'

0 commit comments

Comments
 (0)