1
0
Fork 0
forked from goffee/cup

scheduler

This commit is contained in:
Jose Cely 2026-06-23 18:15:08 -05:00
parent a5a9f4ba50
commit 1a7fc564ff
3 changed files with 10 additions and 8 deletions

View file

@ -28,7 +28,7 @@ func handleSendEmail(ctx context.Context, item *scheduler.QueueItem) error {
return fmt.Errorf("invalid send_email payload: %w", err)
}
log.Printf("[scheduler] [send_email] → to=%s subject=%q", payload.To, payload.Subject)
time.Sleep(50 * time.Millisecond) // simulate I/O
time.Sleep(2000 * time.Millisecond) // simulate I/O
return nil
}