harmonytask better doc

This commit is contained in:
Andrew Jackson (Ajax) 2023-10-25 17:12:29 -05:00
parent 1602b7b980
commit 8e7c0466a9

View File

@ -96,7 +96,7 @@ type TaskInterface interface {
// would cause the insert to fail. // would cause the insert to fail.
// The error indicates that instead of a conflict (which we should ignore) that we // The error indicates that instead of a conflict (which we should ignore) that we
// actually have a serious problem that needs to be logged with context. // actually have a serious problem that needs to be logged with context.
type AddTaskFunc func(extraInfo func(TaskID, *harmonydb.Tx) (bool, error)) type AddTaskFunc func(extraInfo func(TaskID, *harmonydb.Tx) (shouldCommit bool, seriousError error))
type TaskEngine struct { type TaskEngine struct {
ctx context.Context ctx context.Context