mirror of
https://github.com/hibiken/asynq.git
synced 2025-09-20 05:37:17 +08:00
Add StateChanged(func(map[string]interface{}), more ...string) to client and server, to watch state updates with more customized detail, e.g. "completed:result" as default, e.g. pending:next\|task\|message\|result
This commit is contained in:
@@ -752,4 +752,7 @@ type Broker interface {
|
||||
PublishCancelation(id string) error
|
||||
|
||||
WriteResult(qname, id string, data []byte) (n int, err error)
|
||||
|
||||
// StateChanged watch state updates, with more customized detail
|
||||
StateChanged(handler func(map[string]interface{}), more ...string) error
|
||||
}
|
||||
|
Reference in New Issue
Block a user