forked from goffee/cup
scheduler
This commit is contained in:
parent
a5a9f4ba50
commit
1a7fc564ff
3 changed files with 10 additions and 8 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue