mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[PR #135] [MERGED] Major API Redesign #625
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#625
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/135
Author: @hibiken
Created: 4/12/2020
Status: ✅ Merged
Merged: 4/19/2020
Merged by: @hibiken
Base:
master← Head:api/server📝 Commits (10+)
2705b6dRename Background to Serverf131c49Export Start, Stop and Quiet method on Server type1036677Refactor server state8e47d0bRename CLI to asynq68db689Rename internal ProcessState to ServerStatee717149Update all reference to asynqmon to Asynq CLI8d87e1dRename ps command to servers07e2a54Update docs with new APIs15b8360Update doc commentsd96d038Add test cases for server error📊 Changes
44 files changed (+1102 additions, -633 deletions)
View changed files
📝
.gitignore(+3 -3)📝
CHANGELOG.md(+14 -0)📝
README.md(+14 -12)➖
background_test.go(+0 -128)📝
benchmark_test.go(+9 -9)📝
doc.go(+6 -6)📝
docs/assets/asynq_history.gif(+0 -0)📝
docs/assets/asynq_ps.gif(+0 -0)📝
docs/assets/asynq_stats.gif(+0 -0)📝
heartbeat.go(+9 -10)📝
heartbeat_test.go(+39 -14)📝
internal/asynqtest/asynqtest.go(+3 -3)📝
internal/base/base.go(+99 -61)📝
internal/base/base_test.go(+27 -21)📝
internal/rdb/inspect.go(+13 -13)📝
internal/rdb/inspect_test.go(+31 -30)📝
internal/rdb/rdb.go(+20 -20)📝
internal/rdb/rdb_test.go(+73 -72)➕
internal/testbroker/testbroker.go(+187 -0)📝
processor.go(+37 -27)...and 24 more files
📄 Description
This change introduces a few breaking changes to the package APIs.
BackgroundtoServerStart,StopandQuietmethods onServertype.asynqNewServerconstructor takesConfignot*ConfigAfter this change, server-side code may look like the following:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.