Bläddra i källkod

调整

develop
H Vs 19 timmar sedan
förälder
incheckning
82bc47774f
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. +2
    -1
      tasks.py

+ 2
- 1
tasks.py Visa fil

@@ -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 asyncio.sleep(random.uniform(1.5, 3))
# await asyncio.sleep(random.uniform(30, 60))
await asyncio.sleep(random.uniform(270,300))
delay=random.uniform(270,300)
await asyncio.sleep(delay)
# 任务状态推送到kafka
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)


Laddar…
Avbryt
Spara