8000 Add DeleteNamespace API by alexshtin · Pull Request #2645 · temporalio/temporal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 10 commits into from
Mar 26, 2022

Conversation

alexshtin
Copy link
Contributor

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.

@alexshtin alexshtin requested a review from a team as a code owner March 24, 2022 18:49
@alexshtin alexshtin force-pushed the feature/delete-namespace-api branch from fa10b88 to f40e139 Compare March 25, 2022 23:42
@alexshtin
Copy link
Contributor Author

API changes is here: temporalio/api#166

Comment on lines +306 to +307
DeleteActivityRPS: h.config.DeleteNamespaceDeleteActivityRPS(),
ConcurrentDeleteExecutionsActivities: h.config.DeleteNamespaceConcurrentDeleteExecutionsActivities(),
Copy link
Contributor Author
@alexshtin alexshtin Mar 25, 2022

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.

Copy link
Member

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.

@alexshtin alexshtin force-pushed the feature/delete-namespace-api branch from 93f0b1d to 1b8526b Compare March 26, 2022 00:06
@@ -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"
Copy link
Member

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?

Comment on lines +306 to +307
DeleteActivityRPS: h.config.DeleteNamespaceDeleteActivityRPS(),
ConcurrentDeleteExecutionsActivities: h.config.DeleteNamespaceConcurrentDeleteExecutionsActivities(),
Copy link
Member

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.

@alexshtin alexshtin enabled auto-merge (squash) March 26, 2022 01:08
@alexshtin alexshtin merged commit cc51711 into temporalio:master Mar 26, 2022
@alexshtin alexshtin deleted the feature/delete-namespace-api branch March 26, 2022 04:38
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
0