mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[PR #561] [CLOSED] Add StateChanged(func(map[string]interface{}), more ...string) #778
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#778
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hibiken/asynq/pull/561
Author: @mindon
Created: 10/19/2022
Status: ❌ Closed
Base:
master← Head:master📝 Commits (4)
dbe886cAdd 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|result8f9b0c0remove message and add TaskDetail to transform base.TaskInfo to TaskInfof9f966dupdate status value and fix active state bugc02e721reverse active state pub📊 Changes
5 files changed (+146 additions, -12 deletions)
View changed files
📝
asynq.go(+11 -4)📝
client.go(+8 -3)📝
internal/base/base.go(+3 -0)📝
internal/rdb/rdb.go(+119 -5)📝
server.go(+5 -0)📄 Description
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 part of completed output.
The format of more string is "state:next | task | message | result", e.g. pending:message
here a example for workers