Skip to content

Unify methods of history tasks in shard component #6868

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2025

Conversation

Shaddoll
Copy link
Member

What changed?
Unify methods of history tasks in shard component

Why?
Code refactoring

How did you test it?
unit tests

Potential risks
If there is a mistake, the ack level, read level of history queues will not be retrieved or stored correctly.

Release notes

Documentation Changes

@@ -157,7 +157,7 @@ func NewTimerQueueProcessor(
status: common.DaemonStatusInitialized,
shutdownChan: make(chan struct{}),

ackLevel: shard.GetTimerAckLevel(),
ackLevel: shard.GetQueueAckLevel(persistence.HistoryTaskCategoryTimer).ScheduledTime,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we move this to Start()?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can do it in a separate PR.

@Shaddoll Shaddoll merged commit 3da8379 into cadence-workflow:master Apr 30, 2025
23 checks passed
@Shaddoll Shaddoll deleted the shard branch April 30, 2025 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants