浏览代码

调整

develop
H Vs 23 小时前
父节点
当前提交
82bc47774f
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      tasks.py

+ 2
- 1
tasks.py 查看文件

@@ -849,7 +849,8 @@ def scheduled_task_add_contacts_from_chatrooms(self, redis_config, kafka_config,
await kafka_service.send_message_async(k_message) await kafka_service.send_message_async(k_message)
# await asyncio.sleep(random.uniform(1.5, 3)) # await asyncio.sleep(random.uniform(1.5, 3))
# await asyncio.sleep(random.uniform(30, 60)) # await asyncio.sleep(random.uniform(30, 60))
await asyncio.sleep(random.uniform(270,300))
delay=random.uniform(270,300)
await asyncio.sleep(delay)
# 任务状态推送到kafka # 任务状态推送到kafka
task_status = await gewe_service.wx_add_contacts_from_chatroom_task_status_async(wxid, chatroom_id) task_status = await gewe_service.wx_add_contacts_from_chatroom_task_status_async(wxid, chatroom_id)
k_message=wx_add_contacts_from_chatroom_task_status_message(wxid, chatroom_id, task_status) k_message=wx_add_contacts_from_chatroom_task_status_message(wxid, chatroom_id, task_status)


正在加载...
取消
保存