mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[PR #400] [MERGED] Introduce worker lease #735
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#735
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/400
Author: @hibiken
Created: 2/17/2022
Status: ✅ Merged
Merged: 2/19/2022
Merged by: @hibiken
Base:
master← Head:feat/lease📝 Commits (10+)
87218f5Add base.LeaseKey helper functiond5ac1fbUpdate RDB.Dequeue to insert task ID to lease set01cff7cMove task deadline compute logic to processord48eac2Update RDB methods to use lease instead of deadlines set0fb0d4fUpdate ListDeadlineExceeded to ListLeaseExpired86ae8ecUpdate recoverer to use ListLeaseExpired6974812Add RDB.ExtendLease method92eba47Update heartbeat goroutine to call ExtendLease on active tasks6f88c14Add Lease type to base package53d8d05Update RDB methods to work with lease📊 Changes
24 files changed (+1349 additions, -615 deletions)
View changed files
📝
CHANGELOG.md(+5 -0)📝
asynq.go(+8 -0)📝
forwarder.go(+1 -1)📝
heartbeat.go(+28 -2)📝
heartbeat_test.go(+211 -24)📝
inspector.go(+15 -3)📝
inspector_test.go(+42 -1)📝
internal/asynqtest/asynqtest.go(+18 -14)📝
internal/base/base.go(+78 -9)📝
internal/base/base_test.go(+78 -5)📝
internal/rdb/benchmark_test.go(+12 -8)📝
internal/rdb/inspect.go(+3 -3)📝
internal/rdb/inspect_test.go(+1 -1)📝
internal/rdb/rdb.go(+68 -101)📝
internal/rdb/rdb_test.go(+375 -319)📝
internal/testbroker/testbroker.go(+21 -12)📝
internal/timeutil/timeutil.go(+27 -6)➕
internal/timeutil/timeutil_test.go(+48 -0)📝
janitor.go(+1 -1)📝
processor.go(+83 -48)...and 4 more files
📄 Description
Closes #334
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.