Joe
11/24/2024, 6:09 PMprefect server start
once, I can no longer get the ephemeral server to come up when I test the flow. Upon some debugging, it looks like the presence of ~/.prefect/profiles.toml is causing that problem. Actively set the profile to "ephemeral" doesn't help. What is the right way of getting back to the initial state? Just delete the profiles.toml?Nate
11/25/2024, 2:02 AMprefect config view
you'll see which PREFECT_API_URL
is currently being used and where its being setJoe
11/25/2024, 2:34 AMprefect config view
shows:
pipeline git:(pipeline_pg) ✗ prefect config view <aws:my-sso>
PREFECT_PROFILE='ephemeral'
PREFECT_SERVER_ALLOW_EPHEMERAL_MODE='true' (from profile)
Joe
11/25/2024, 2:36 AMPREFECT_API_URL
is not set. But when I do touch ~/.prefect/profiles.toml
, I can no longer run it with the ephemeral server. I get ValueError: No Prefect API URL provided. Please set PREFECT_API_URL to the address of a running Prefect server.
Joe
11/25/2024, 2:37 AMPREFECT_API_URL
is not set. But the presence of an empty profiles.toml
changed the behavior.Nate
11/25/2024, 3:45 AMJoe
11/25/2024, 3:45 AMNate
11/25/2024, 3:46 AMJoe
11/25/2024, 3:46 AMNate
11/25/2024, 3:46 AMPREFECT_API_URL
?Joe
11/25/2024, 4:01 AM~/.prefect/profiles.toml
.Joe
11/25/2024, 4:01 AM