I ended up with minutes-long open transactions in the database in prod which was causing outtages. This is because I thought transactions were basically free, which is a terrible thing to think. Instead we'll just open them when we need them.
10 lines
166 B
Go
10 lines
166 B
Go
package email
|
|
|
|
import (
|
|
"context"
|
|
//"github.com/rs/zerolog/log"
|
|
)
|
|
|
|
func Job(ctx context.Context, email_id int32) error {
|
|
return sendEmailComplete(ctx, email_id)
|
|
}
|