Browse Source

代码更新

main
hesuicong 2 weeks ago
parent
commit
31ea2bc177
  1. 17
      clound_print.py
  2. 18
      config.py

17
clound_print.py

@ -11,6 +11,7 @@ from print_factory_type_setting_obj_run import print_type_setting_obj @@ -11,6 +11,7 @@ from print_factory_type_setting_obj_run import print_type_setting_obj
from config import print_factory_type_dir
from config import oss_config
from config import local_data
from config import redis_config
from general import is_run_local_data
# 如果没有 DISPLAY,自动启动 Xvfb
@ -32,22 +33,6 @@ if "DISPLAY" not in os.environ: @@ -32,22 +33,6 @@ if "DISPLAY" not in os.environ:
os.environ["DISPLAY"] = ":99"
sleep(0.5) # 等待 Xvfb 启动
# redis_config = {
# "host": "127.0.0.1",
# "port": 6379,
# "db": 6,
# "password": "", # "kcV2000",
# "socket_timeout": 10,
# }
redis_config = {
"host": "mp.api.suwa3d.com",
"port": 6379,
"db": 6,
"password": "kcV2000", # "kcV2000",
"socket_timeout": 10,
}
import sys
class RedisTaskQueue:
"""封装所有与 Redis 任务队列相关的操作。"""

18
config.py

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save