-
Notifications
You must be signed in to change notification settings - Fork 1
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 support for picking a non-prd Prefect Cloud environment #15
Adds support for picking a non-prd Prefect Cloud environment #15
Conversation
) | ||
|
||
app.console.print( | ||
f"Run it with: \n $ prefect deployment run {function}/{deployment_name}", | ||
style="blue", |
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.
These blue styles are pretty dark on Ubuntu's default theme. Dialing them back for now
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.
boooo
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.
I joke
# TODO: Get this configuration from the user's environment if possible | ||
CLOUD_UI_URL = "https://app.prefect.cloud" | ||
CLOUD_API_URL = "https://api.prefect.cloud/api" | ||
if os.environ.get("CLOUD_ENV") in ("prd", "prod", None): |
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.
There a pydantic settings file we could use for this instead of getting it directly?
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.
Good question, I've felt a little off-kilter with where the settings should be with this one, since we're kinda piggybacking on ~/.prefect/profiles.toml
. I figured this was only for us devs, so we didn't want to expose this as a user-facing option (like as a --cloud-env
switch or something, which is how I started)
* Autocompletes deployments on `run`, `schedule`, and friends There's still more of a delay here than I'd like, even with the caching. I think we are starting to get some import time creep that I'll dig into more over time. * Fixing up auth tests * Adds support for picking a non-prd Prefect Cloud environment (#15)
No description provided.