https://prefect.io logo
Title
c

Charles Leung

09/02/2020, 8:38 PM
Hey guys, another question - so i'm trying to register a flow to my core local server not on the same host. How do i configure it so that it stops sending requests to localhost? it doesn't seem to be picking up the GRAPHQL_URL env var nor the config.toml -
j

josh

09/02/2020, 9:02 PM
You should be able to set the env var
PREFECT__SERVER__ENDPOINT=...
in order to start communicating with your hosted server.
c

Charles Leung

09/03/2020, 4:10 PM
perfect josh! this works. thank you
does this also apply to where i create flows? it seems whenever i create a flow, it adds a label as the hostname of where i registered the flow. how do i remove this label?
j

josh

09/03/2020, 4:13 PM
The addition of these default labels can be disabled by passing
add_default_labels=False
to the flow’s storage option. Keep in mid though that if you are registering a flow with the default Local storage the agents running on different machines still won’t be able to run the flow because the file is stored on your machine
c

Charles Leung

09/04/2020, 9:16 PM
ah thanks for the information -