mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[PR #432] [MERGED] Add Task Aggregation feature #1755
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#1755
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/432
Author: @hibiken
Created: 4/10/2022
Status: ✅ Merged
Merged: 4/11/2022
Merged by: @hibiken
Base:
master← Head:feat/group📝 Commits (10+)
91a6221Add group related configuration options976f76fAdd Group task option19f127bAdd helper functions to generate group key278b2d7Add RDB.AddToGroup and RDB.AddToGroupUnique methodsa88f649Update Client to add task to group if Group option is specified17e9725Update RDB.ForwardIfReady to forward to group if groupKey is specified47acff3Add GroupKey field to TaskMessage1922964Update client to store groupKey under TaskMessage39cf648Update ForwardIfReady test with group15619fcUpdate forwarder to use time.Timer📊 Changes
40 files changed (+4847 additions, -486 deletions)
View changed files
📝
CHANGELOG.md(+11 -0)➕
aggregator.go(+176 -0)➕
aggregator_test.go(+165 -0)📝
asynq.go(+16 -0)📝
asynq_test.go(+1 -1)📝
benchmark_test.go(+1 -1)📝
client.go(+58 -25)📝
client_test.go(+158 -1)📝
context.go(+2 -2)📝
forwarder.go(+3 -1)📝
forwarder_test.go(+1 -1)📝
heartbeat_test.go(+1 -1)📝
inspector.go(+183 -93)📝
inspector_test.go(+201 -1)📝
internal/base/base.go(+57 -1)📝
internal/base/base_test.go(+103 -0)📝
internal/proto/asynq.pb.go(+91 -78)📝
internal/proto/asynq.proto(+5 -0)📝
internal/rdb/benchmark_test.go(+38 -38)📝
internal/rdb/inspect.go(+344 -43)...and 20 more files
📄 Description
Closes #339
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.