程序优化
This commit is contained in:
1 parent
2c036235a6
commit
3197efd6a3
3 files changed
+42
-3
No files matched your search
@@ -37,6 +37,9 @@ def readTask(key):
|
||||
|
||||
#默认走原来的数据表tasks,现在要切入一些数据过来走分布式建模系统
|
||||
taskData = {"task_type":key,"task_key":pid,"psid":psid,"priority":1}
|
||||
if int(psid) == 41 or int(psid) == 85:
|
||||
taskData["priority"] = 0
|
||||
|
||||
if libs_db.isStudioConfigDistribute(psid):
|
||||
print("走分布式建模系统插入",key,pid,psid)
|
||||
libs_db.add_task_distributed(taskData)
|
||||
|
||||
Reference in new issue
Block a user