Skip to content
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

feat: add chunk size argument to delete cli command #10813

Merged
merged 3 commits into from
Apr 6, 2023

Conversation

oskanberg
Copy link
Contributor

@oskanberg oskanberg commented Apr 4, 2023

The argo list CLI command accepts an --chunk-size n argument, but the argo delete command does not. In our case, this was problematic because the large number of old workflows we had was causing unbounded list queries to fail, and the sensible remedy (deleting old workflows) was not possible because (for example) argo delete --since 30d could not be chunked in the same way that listing could.

This PR adds a --query-chunk-size n argument to argo delete, which is applied when the command is fetching the workflows it will delete. The name query-chunk-size is different from the list command option chunk-size to avoid the implication that it will delete according to the specified chunk - but please suggest a better name if you have one.

The flag is passed directly to listWorkflows so follows the same code path as the list command.

Signed-off-by: Oliver Skånberg-Tippen <oliverskanbergtippen@gmail.com>
Signed-off-by: Oliver Skånberg-Tippen <oliverskanbergtippen@gmail.com>
@oskanberg oskanberg marked this pull request as ready for review April 4, 2023 14:59
@terrytangyuan terrytangyuan merged commit 3ed6887 into argoproj:master Apr 6, 2023
JPZ13 pushed a commit to pipekit/argo-workflows that referenced this pull request Jul 4, 2023
Signed-off-by: Oliver Skånberg-Tippen <oliverskanbergtippen@gmail.com>
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.

None yet

2 participants