mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[PR #1094] Add BatchEnqueue for pipelined multi-task enqueue #3034
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#3034
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/1094
Author: @enilsen16
Created: 2/24/2026
Status: 🔄 Open
Base:
master← Head:batch-enqueue📝 Commits (4)
f919a60Add BatchEnqueue for pipelined multi-task enqueue4e62d7eAdd tests for BatchEnqueue: multiple tasks, empty batch, duplicate IDs71ebcfaFix BatchEnqueueContext time comparison and add scheduled task support7ae0b3fAdd Options() accessor on Task for external option merging📊 Changes
7 files changed (+455 additions, -0 deletions)
View changed files
📝
asynq.go(+1 -0)📝
client.go(+107 -0)📝
client_test.go(+124 -0)📝
internal/base/base.go(+9 -0)📝
internal/rdb/rdb.go(+70 -0)📝
internal/rdb/rdb_test.go(+135 -0)📝
internal/testbroker/testbroker.go(+9 -0)📄 Description
Adds BatchEnqueue to the Broker interface and RDB implementation that sends multiple enqueueCmd Lua script invocations in a single Redis pipeline round-trip. Also adds BatchEnqueueContext to the Client as the public API, returning per-task results for partial-success handling.
Ref: hibiken/asynq#1069
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.