tâches planifiées : prompts cron persistés, outil scheduler, conversations liées aux tâches, rattrapage des exécutions manquées au redémarrage (go-cron MissedRunOnce)

This commit is contained in:
fabien committed 2026-10-06 22:15:59 +02:00
1 parent bedb6c98e7
commit 058370830f
71 files changed
+1627 -100

No files matched your search

+4 -2
View File
@@ -47,6 +47,7 @@ func (s *Service) NewChat(
userID string,
teamID string,
agentID string,
taskID string,
) (*domain.Chat, error) {
team, err := s.repoUser.FindTeam(userID, teamID)
@@ -60,6 +61,7 @@ func (s *Service) NewChat(
UserID: userID,
AgentID: agentID,
TeamID: team.ID,
TaskID: taskID,
StartDatetime: &start,
Title: "Nouvelle conversation",
}
@@ -170,8 +172,8 @@ func (s *Service) AddChatMessage(
return message, nil
}
func (s *Service) ListChats(userID string, teamID string, page int, query string) ([]*domain.Chat, error) {
return s.repoChat.ListChats(userID, teamID, page, query)
func (s *Service) ListChats(userID string, teamID string, page int, query string, taskID string) ([]*domain.Chat, error) {
return s.repoChat.ListChats(userID, teamID, page, query, taskID)
}
func (s *Service) GetChat(userID string, teamID, chatID string) (*domain.Chat, error) {