-
Notifications
You must be signed in to change notification settings - Fork 1k
Add DeleteNamespace API #2645
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
Add DeleteNamespace API #2645
Conversation
fa10b88
to
f40e139
Compare
API changes is here: temporalio/api#166 |
DeleteActivityRPS: h.config.DeleteNamespaceDeleteActivityRPS(), | ||
ConcurrentDeleteExecutionsActivities: h.config.DeleteNamespaceConcurrentDeleteExecutionsActivities(), |
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.
DeleteExecutionsConfig
has 4 fields. I decided to expose these two through dynamic config and other 2 just leave workflow defaults.
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.
why use dynamic config for this? It would be much easier to just pass in as input.
93f0b1d
to
1b8526b
Compare
@@ -217,6 +217,13 @@ const ( | |||
// of Timeout and if no activity is seen even after that the connection is closed. | |||
KeepAliveTimeout = "frontend.keepAliveTimeout" | |||
|
|||
// DeleteNamespaceDeleteActivityRPS is RPS per every parallel delete executions activity. | |||
// Total RPS is equal to DeleteNamespaceDeleteActivityRPS * DeleteNamespaceConcurrentDeleteExecutionsActivities. | |||
DeleteNamespaceDeleteActivityRPS = "frontend.deleteNamespaceDeleteActivityRPS" |
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.
why is this frontend dynamic config?
DeleteActivityRPS: h.config.DeleteNamespaceDeleteActivityRPS(), | ||
ConcurrentDeleteExecutionsActivities: h.config.DeleteNamespaceConcurrentDeleteExecutionsActivities(), |
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.
why use dynamic config for this? It would be much easier to just pass in as input.
What changed?
Add DeleteNamespace API.
Why?
Expose DeleteNamespace feature.
How did you test it?
Invoke API manually but will add intergration tests later.
Potential risks
No risks.
Is hotfix candidate?
No.