-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Proposal: argo cron suspend-all
/ argo cron resume-all
Command
#13595
Comments
There is already a keyword
If I'm not mistaken, this is being run in serial, hence the slow throughput. Parallelizing this should be substantially faster.
Also that and your above command are for
Having a confirmation, progress bar, etc is quite complicated and involved; I would strongly suggest having an MVP for a first pass rather than all these requirements. Retrieving all Workflows and then suspending one by one for progress reporting is also multiple API requests, whereas nearly all the CLI commands correspond 1-to-1 to an API method. That ensures consistency and simplicity |
argo suspend-all
/ argo resume-all
Commandargo suspend-all
/ argo resume-all
Command
argo suspend-all
/ argo resume-all
Commandargo cron suspend-all
/ argo cron resume-all
Command
Hello, This command uses |
It looks like you only removed the progress bar element? |
Proposal:
argo cron suspend-all
/argo cron resume-all
CommandBackground and Motivation
Currently, Argo Workflows lacks a native way to suspend multiple workflows simultaneously. Users managing large-scale deployments (500+ workflows) face significant time and resource constraints when trying to suspend all workflows, especially in critical situations requiring quick action.
The existing method of suspending workflows individually or through scripted solutions is inefficient and time-consuming, often taking up to 30 minutes for 500+ workflows. This limitation poses a significant operational challenge and may impact system performance and reliability in production environments.
Note: A similar demand was raised on Apr 11, 2023 (#10876), but the proposal was incomplete and did not gain traction. This proposal aims to provide a more comprehensive and actionable solution to address this long-standing need.
Proposed Feature
We propose adding a new command to the Argo CLI:
argo cron suspend-all
. This command would provide a native, efficient way to suspend multiple workflows at once, significantly improving the management of large-scale Argo Workflows deployments.Command Syntax
Parameters
-n, --namespace
: Specify the namespace (optional, defaults to the current namespace)--selector
: Label selector to filter workflows (optional)--dry-run
: Print the workflows that would be suspended without actually suspending them--force
: Skip confirmation promptBehavior
--force
is used).Example Usage
Implementation Considerations
resume-all
command for easy reversal of this operation.Benefits
Next Steps
We believe this feature would greatly enhance Argo Workflows' capabilities in managing large-scale deployments and improve overall user experience.
The text was updated successfully, but these errors were encountered: