Add janitor goroutine

This commit is contained in:
Ken Hibino
2021-09-19 06:26:37 -07:00
parent 79c17b9ee9
commit 902a34a308
5 changed files with 190 additions and 0 deletions

View File

@@ -670,6 +670,7 @@ type Broker interface {
Retry(msg *TaskMessage, processAt time.Time, errMsg string, isFailure bool) error
Archive(msg *TaskMessage, errMsg string) error
ForwardIfReady(qnames ...string) error
DeleteExpiredCompletedTasks(qname string) error
ListDeadlineExceeded(deadline time.Time, qnames ...string) ([]*TaskMessage, error)
WriteServerState(info *ServerInfo, workers []*WorkerInfo, ttl time.Duration) error
ClearServerState(host string, pid int, serverID string) error