-
Notifications
You must be signed in to change notification settings - Fork 107
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
Fix encoding of shadowing activities #600
Conversation
yux0
commented
Apr 7, 2021
- Fix shadower worker accessibility
- Fix shadowing activity encoding with golang
- Minor fixes in shadower worker
.setSucceeded(successCount) | ||
.setFailed(failedCount) | ||
.setSkipped(skippedCount); | ||
ReplayWorkflowActivityResult heartbeatResult = new ReplayWorkflowActivityResult(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: looks like we can reuse heartbeatResult
defined above? no strong opinion on this, feel free to ignore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
.setSucceeded(successCount) | ||
.setFailed(failedCount) | ||
.setSkipped(skippedCount); | ||
ReplayWorkflowActivityResult result = new ReplayWorkflowActivityResult(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: same here, looks like heartbeatResult
can be reused.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
@@ -34,6 +34,7 @@ | |||
|
|||
public final class WorkflowShadower { | |||
private static final long SLEEP_INTERVAL = 300L; | |||
private static final int PAGE_SIZE = 1000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think server has a default value to this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
@@ -81,31 +88,31 @@ | |||
.build(); | |||
activityWorker = | |||
new SyncActivityWorker( | |||
client.getService(), client.getOptions().getDomain(), this.taskList, activityOptions); | |||
client.getService(), shadowerConstants.LocalDomainName, this.taskList, activityOptions); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍