Example #1
0
func FailedAttemptCallback(task *kafka.Task, result kafka.WorkerResult) kafka.FailedDecision {
	kafka.Info("main", "Failed attempt")

	return kafka.CommitOffsetAndContinue
}
Example #2
0
func FailedCallback(wm *kafka.WorkerManager) kafka.FailedDecision {
	kafka.Info("main", "Failed callback")

	return kafka.DoNotCommitOffsetAndStop
}