-
Notifications
You must be signed in to change notification settings - Fork 304
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 cli option to update workflow #98
Conversation
flytekit/clis/flyte_cli/main.py
Outdated
"--state", | ||
type=_click.Choice(["active", "archived"]), | ||
required=True, | ||
help="Whether or not to set a workflow as actively visible in the UI." |
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.
actively visible?
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.
trying to tie it back to 'active'... i'll reword
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.
We should say Ui/ cli. Default is active only
This updates the state of the workflow specified by the ID. | ||
:param id: flytekit.models.core.identifier.Identifier id: The ID representing a given task. | ||
:param int state: Enum value from flytekit.models.workflow.WorkflowState | ||
:return: |
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.
if this passes the return type from raw, can you copy paste here too?
TL;DR
This change allows a user to update workflow state using the flyte-cli
Type
Are all requirements met?
Complete description
Tested on flyte staging and checked on portal that the state was correctly modified.
Tracking Issue
flyteorg/flyte#235
Follow-up issue
NA