This commit is contained in:
dongchangxi committed 2025-01-07 15:01:02 +08:00
1 parent 3120dcb82e
commit 2e23329181
3 files changed
+28 -25

No files matched your search

+4 -6
View File
@@ -1,10 +1,10 @@
import redis, os, sys,requests,platform,json
if platform.system() == 'Windows':
#sys.path.append('E:\\make2\\libs\\')
sys.path.append('libs')
sys.path.append('E:\\libs\\')
#sys.path.append('libs')
else:
sys.path.append('/data/deploy/make3d/make2/libs/')
import config, libs,libs_db,libs_db_task_rc
import config, libs,libs_db
def main(cmd, order_id):
if cmd == 'print': #order_id
@@ -26,9 +26,7 @@ def main(cmd, order_id):
if order_id == 'view':
if cmd == "rc_model_build":
nums = libs_db_task_rc.get_task_rc_count()
print(f'当前{cmd}队列长度:{nums}')
notify(f'当前{cmd}队列长度:{nums}')
pass
else:
print(f"key-{key}")
print(f'当前{cmd}队列长度:{r.llen(key)}')