https://prefect.io logo
Title
k

Kevin Weiler

09/28/2021, 9:32 PM
hi there - I’m trying to get prefect server (which I have running on Nomad in a configuration that I essentially translated from the docker-compose file) to do two things: 1. return the correct URL for a flow that I’ve registered 2. return the correct URL for a flow that the
slack_notifier
function posts a status update for presumably these 2 things are related. I tried following this ticket and setting the
PREFECT__SERVER__UI__ENDPOINT
env var in the environment where the UI container runs. I believe that is what is implied by:
[server]
  [server.ui]
  endpoint = "..."
In the ticket. But that didn’t correct the issue. Do I need to set this env var in a different component - the graphql component perhaps?
k

Kevin Kho

09/28/2021, 9:45 PM
What is the form of the URL you are getting?
k

Kevin Weiler

09/28/2021, 9:47 PM
Flow URL: <http://localhost:8080/default/flow/9eac36b3-25f8-43f3-9590-fd6fb5568f70>
 └── ID: 946ca35e-82b8-471c-bef9-42de57607652
 └── Project: default
 └── Labels: []
should be something like
<http://prefect/default>...
I’m basically injecting all configuration into each individual docker container using env variables. I actually don’t need to do that, now that I’m thinking about - I could give each container the same
config.toml
file pretty easily which might obviate this problem
k

Kevin Kho

09/28/2021, 9:57 PM
Oh that does sound pretty straightforward I think. I think the registration. Here is the function that creates the URL, so it is
prefect.config.server.ui.endpoint
configured where you register from