Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API 模式 消费者无法消费队列 #52

Closed
r00tuser111 opened this issue Mar 30, 2023 · 3 comments
Closed

API 模式 消费者无法消费队列 #52

r00tuser111 opened this issue Mar 30, 2023 · 3 comments

Comments

@r00tuser111
Copy link

使用API模式进行部署,并注册了一个消费者,但是没有数据。

API 启动命令:

go run enscan.go -config config.yaml -api -debug

client 启动命令:

go run enscan.go -config config.yaml -client task -debug

添加一个搜索小米公司:

POST /api/info

orgname=%E5%B0%8F%E7%B1%B3%E7%A7%91%E6%8A%80%E6%9C%89%E9%99%90%E8%B4%A3%E4%BB%BB%E5%85%AC%E5%8F%B8&branch=false&update=true

API 日志如下:
image

但这个任务貌似没有处理。

client和API端都没有打印:任务接受成功。

@r00tuser111
Copy link
Author

r00tuser111 commented Mar 30, 2023

补充config.yaml配置:

version: 0.3
api:
  server: "127.0.0.1" # redis地址
  mongodb: "mongodb://user:[email protected]:27017" # mongodb 连接信息
  redis: "redis_password" # redis 密码
  port: "8888" # 启动API端口
common:
  output: ""            # 导出文件位置
  field: []			# 查询字段 如["website"]
cookies:
  aiqicha: ''           # 爱企查   Cookie
  tianyancha: ''        # 天眼查   Cookie
  qcc: ''               # 企查查   Cookie
  aldzs: 'cookie'             # 阿拉丁   Cookie
  xlb: ''               # 小蓝本   Token
  qimai: ''             # 七麦数据  Cookie
  chinaz: ''			# 站长之家  Cookie
  veryvp: '' 			# veryvp  Cookie

@keac
Copy link
Member

keac commented Mar 30, 2023

请使用 -client tasks 目前该参数为固定状态
image

@r00tuser111
Copy link
Author

嗯,我刚刚再看了一下发现了。

@keac keac closed this as completed Mar 30, 2023
@keac keac pinned this issue Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants