update 6.2.6

This commit is contained in:
jose
2019-09-20 15:33:22 +08:00
parent 5663522d80
commit e8aa95f86c
36 changed files with 1933 additions and 380 deletions
+5 -4
View File
@@ -59,7 +59,6 @@ class bt_task:
if type(data) == str:
public.WriteLog('Task queue',data)
return []
if not 'num' in get: get.num = 15
num = int(get.num)
for i in range(len(data)):
@@ -160,11 +159,14 @@ class bt_task:
#开始检测任务
def start_task(self):
noe = False
while True:
n = 0
while True:
try:
time.sleep(1);
if not os.path.exists(self.__task_tips) and noe: continue;
n+=1
if not os.path.exists(self.__task_tips) and noe and n < 60: continue;
if os.path.exists(self.__task_tips): os.remove(self.__task_tips)
n = 0
public.M(self.__table).where('status=?',('-1',)).setField('status',0)
task_list = self.get_task_list(0)
for task_info in task_list:
@@ -385,7 +387,6 @@ class bt_task:
os.system('chown -R www:www ' + filename)
# os.system('chmod -R 755 ' + filename)
a = 'find {filename} -type d |xargs chmod 0755'.format(filename=filename)
public.writeFile("/tmp/2",str(a))
os.system(a)
os.system('find {filename} -type f |xargs chmod 0644'.format(filename=filename))