logs: add some log to fix scheduling errors

This commit is contained in:
2026-04-28 07:08:24 +02:00
parent 9780311cd0
commit 087bcab16b
4 changed files with 113 additions and 2 deletions

View File

@ -249,8 +249,9 @@ func parseIndexArray(response string, maxIndex int) []int {
func (p *Pipeline) GenerateForAll(ctx context.Context) error {
users, err := p.repo.ListUsers()
if err != nil {
return err
return fmt.Errorf("GenerateForAll: list users: %w", err)
}
fmt.Printf("[pipeline] GenerateForAll: %d user(s) to process\n", len(users))
for _, user := range users {
if _, err := p.GenerateForUser(ctx, user.ID); err != nil {
fmt.Printf("summary for user %s: %v\n", user.Email, err)