-
Notifications
You must be signed in to change notification settings - Fork 132
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
added worker.NewV2 with validation on decision poller count #1370
added worker.NewV2 with validation on decision poller count #1370
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
worker/worker.go
Outdated
@@ -277,12 +277,36 @@ const ( | |||
// identifies group of workflow and activity implementations that are | |||
// hosted by a single worker process | |||
// options - configure any worker specific options like logger, metrics, identity | |||
// | |||
// DEPRCATED: use NewV2 instead since this implementation will panic on error |
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.
typo and also change casing to // Deprecated
as @Groxx mentioned in other comment
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.
fixed
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.
fixed
@@ -277,12 +277,36 @@ const ( | |||
// identifies group of workflow and activity implementations that are | |||
// hosted by a single worker process | |||
// options - configure any worker specific options like logger, metrics, identity | |||
// | |||
// DEPRCATED: use NewV2 instead since this implementation will panic on error | |||
func New( |
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.
please update CHANGELOG.md about this new validation and the new worker.NewV2
constructor
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.
sure
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.
thanks!
What changed?
worker.NewV2
interface that will return error and a deprecation message onNew
api.-- decision poller should be larger than 1 if value is set (not zero) and sticky execution is enabled.
Why?
#1369
How did you test it?
Unit Test
Potential risks
Low
===== below is required for breaking change ======
Detailed Description
added a new
worker.NewV2
interface that will return error and a deprecation message onNew
api.Impact Analysis
Testing Plan
Rollout Plan
New
toNewV2