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

Adds deletecommand and remove flag. #48

Merged
merged 3 commits into from
Feb 14, 2025

Conversation

jeanluciano
Copy link
Contributor

Adds a delete command for deleting deployments and a remove flag for deleting a deployments schedules. It also removes the pause and resume deployment schedule functions.

@jeanluciano jeanluciano marked this pull request as ready for review February 13, 2025 21:46
@@ -242,7 +242,7 @@ async def schedule(
help="Name or ID of the deployment to schedule",
autocompletion=completions.complete_deployment,
),
schedule: str = typer.Argument(
schedule: str = typer.Option(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think doing it like this would mean you need to specify something for --schedule in addition to --remove. This may need to be optional and then you check that only either --schedule or --remove is selected.

If that feels weird, we could maybe try making it a different command entirely

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think we should do something like prefect-cloud unschedule deployment/name

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds good to me. That's my fault for suggesting --remove I think I talked myself in circles here...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't even like --run but that's just me

@jakekaplan jakekaplan merged commit 0ed7a8c into main Feb 14, 2025
4 checks passed
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.

3 participants