2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-23 10:16:12 +08:00

Add RDB.ExtendLease method

This commit is contained in:
Ken Hibino
2022-02-12 06:49:53 -08:00
parent 86ae8ecb4a
commit 6974812027
3 changed files with 132 additions and 5 deletions

View File

@@ -626,6 +626,7 @@ type Broker interface {
ForwardIfReady(qnames ...string) error
DeleteExpiredCompletedTasks(qname string) error
ListLeaseExpired(cutoff time.Time, qnames ...string) ([]*TaskMessage, error)
ExtendLease(qname string, ids ...string) error
WriteServerState(info *ServerInfo, workers []*WorkerInfo, ttl time.Duration) error
ClearServerState(host string, pid int, serverID string) error
CancelationPubSub() (*redis.PubSub, error) // TODO: Need to decouple from redis to support other brokers