定时读取任务没有分布式的概念

This commit is contained in:
dongchangxi committed 2024-12-27 20:29:54 +08:00
1 parent 8184799610
commit dffc47641e
1 file changed
+11 -11
+11 -11
View File
@@ -59,17 +59,17 @@ def readTask(key):
print("走新的建模系统不是分布式插入-重建工单",key,pid,psid)
libs_db.add_task(taskData)
else:
intPid = int(psid)
if intPid == 29 or intPid == 94 or intPid == 51:
libs_db.add_task(taskData)
elif int(psid) <= 90 and int(psid) != 29 and int(psid) != 56 and int(psid) != 1:
print("走分布式建模",key,pid,psid)
if int(psid) == 41 or int(psid) == 85:
taskData["priority"] = 0
libs_db.add_task_distributed(taskData)
else:
print("非分布式建模",key,pid,psid)
libs_db.add_task(taskData)
# intPid = int(psid)
# if intPid == 29 or intPid == 94 or intPid == 51:
# libs_db.add_task(taskData)
# elif int(psid) <= 90 and int(psid) != 29 and int(psid) != 56 and int(psid) != 1:
# print("走分布式建模",key,pid,psid)
# if int(psid) == 41 or int(psid) == 85:
# taskData["priority"] = 0
# libs_db.add_task_distributed(taskData)
# else:
print("非分布式建模",key,pid,psid)
libs_db.add_task(taskData)
#程序主入口
if __name__ == '__main__':
atexit.register(common.notify,"定时读取建模任务已经停止")