Selaa lähdekoodia

Update agent_service: fix active conversation schedule

StrayWarrior 2 viikkoa sitten
vanhempi
commit
38dcd187c8
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      agent_service.py

+ 2 - 1
agent_service.py

@@ -223,6 +223,7 @@ class AgentService:
         ))
 
     def _check_initiative_conversations(self):
+        logger.info("start to check initiative conversations")
         """定时检查主动发起对话"""
         for staff_user in self.user_relation_manager.list_staff_users():
             staff_id = staff_user['staff_id']
@@ -349,7 +350,7 @@ if __name__ == "__main__":
     )
     # 只有企微场景需要主动发起
     if not config['debug_flags'].get('disable_active_conversation', False):
-        schedule_param = config['agent_behavior'].get('schedule_param', None)
+        schedule_param = config['agent_behavior'].get('active_conversation_schedule_param', None)
         service.setup_initiative_conversations(schedule_param)