mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[PR #34] [MERGED] Handle mutated task in RDB's Done, Retry, Kill methods #1567
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#1567
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/34
Author: @hibiken
Created: 12/30/2019
Status: ✅ Merged
Merged: 12/31/2019
Merged by: @hibiken
Base:
master← Head:fix/mutated_payload📝 Commits (2)
52559ffHandle mutated task in RDB's Done, Retry, Kill methodsb793827Add benchmark tests for rdb📊 Changes
4 files changed (+411 additions, -69 deletions)
View changed files
📝
internal/asynqtest/asynqtest.go(+66 -66)➕
internal/rdb/benchmark_test.go(+37 -0)📝
internal/rdb/rdb.go(+45 -3)📝
internal/rdb/rdb_test.go(+263 -0)📄 Description
It is possible that user mutates the task's payload in Handler (Although doc says the task in handler is read-only). Prevent inconsistent states by handling the case where user mutates the task.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.