-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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: Enhanced Time-based Workflow Filtering #3384
Labels
Comments
what about |
@alexec It's an option but there will be more flags since there are several different phases to cover. |
Should probably be consistent with |
Not much community interest. Closing for now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
Introducing additional flags for Argo CLI to enhance existing functionality of workflow filtering.
Motivation
Per discussions here, the current implementation of the following two flags
--since
and--older
forargo list
, when used jointly, can cause confusion and users might interpret it in different ways. Recall that--since
represents the relative duration since the workflow is created and--older
represents the relative duration after the workflow finishes. The current implementation of this when using both flags is filtering from the list workflows with the followingWorkflowPredicate
:One can interpret this in multiple ways, as pointed out in the discussion, for example (using
A
andB
to denote two time points):A
andB
.A
andB
.B
and (not finished OR finished after timeA
).A
and finished beforeB
.This will lead to confusion to users and we need to come up with a better way to distinguish between different use cases.
Proposal
We introduce two additional flags related to time:
--from-time
--until-time
and another two additional flags related to status:
--from-status
--until-status
where the status can be any one from
workflow_types.NodePhase
as well as"created"
as an additional phase to distinguish from the other phases.For example, if
argo list --from-time 2h --from-status=created --until-time=10m --until-status=succeeded
is executed, the user should expect a list of workflows that are created from 2 hours ago and succeeded 10 minutes ago.Compatibility with Existing Flags
--older
and--since
should not be used and will be overriden by the behavior of the added flags.--completed
and--running
are also specified, they will be ignored.Message from the maintainers:
If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.
The text was updated successfully, but these errors were encountered: