https://prefect.io logo
Title
t

Tom Baldwin

09/17/2021, 12:29 AM
Will Automations only be available on Prefect Cloud (not server)? Seems that way, but this documentation page doesn't display the blue "cloud" label that the other cloud-only features (like KV Store) have.
k

Kevin Kho

09/17/2021, 12:30 AM
@Marvin open “Add Cloud Only label to Automations Page in Docs”
k

Kevin Kho

09/17/2021, 12:32 AM
Thanks for flagging @Tom Baldwin, yes it will only be available on Cloud unfortunately. There are some services needed for this that only Cloud has
t

Tom Baldwin

09/17/2021, 12:36 AM
Thanks for clarifying. Would it be safe for us to continue using Cloud Hooks instead? That page has an italicized note at the top making it sound like a deprecated feature.
k

Kevin Kho

09/17/2021, 12:51 AM
Checking in with the team
Yes we likely won’t remove them, but at the same time, we’re unlikely to add new functionality also
:thank-you: 1
m

Marko Jamedzija

09/17/2021, 11:13 AM
One question on the same topic as well 🙂 Is it possible to configure the host of the
Link
in the response of the Slack message? Currently the one we get is not setting our prefect server URL. Example message in Slack:
Run perky-hippo of flow Cloud Hook Test Flow entered a new state:
State: Success
Message: Test success state
Link: <http://prefect-hasura.prefect:3000/v1alpha1/graphql/test-slug/flow-run/><run-id>
As you see,
prefect-hasura.prefect
is probably Cloud host.. This is the test request, but the same happens for the Success/Failure/etc. ones
k

Kevin Kho

09/17/2021, 2:22 PM
I need to ask the team on this
👍 1
z

Zach Angell

09/17/2021, 2:30 PM
Hi @Marko Jamedzija the "link" should be using the config value of
server_config.api.url
- the default value is here https://github.com/PrefectHQ/server/blob/master/src/prefect_server/config.toml#L24, and you can override in your custom` config.toml` Is the host in the link not matching your
api.url
configuration?
m

Marko Jamedzija

09/17/2021, 2:43 PM
Hi @Zach Angell 🙂 Thanks for the answer! I see now.. Our apollo service is in k8s and this is using the name/url of the service in k8s. And this is not available outside of the cluster…
We are using helm chart to set it up. This
api.url
value is overriden by
PREFECT_API_URL
env var, right?
Actually, this value is in this env var:
PREFECT_SERVER__API__URL
Is this used only for this (cloud hooks), or there are other usages for it? And if it’s only for this, can we configure this in helm chart? Thanks! 🙂
Ok, it looks like it can be overriden here: https://github.com/PrefectHQ/server/blob/673cbeab144cb2ae06a17c23fdfb4e2356f0376c/helm/prefect-server/values.yaml#L106. I’m only interested now it this affect anything else. Thanks!
The default value is defined here btw…
z

Zach Angell

09/17/2021, 3:26 PM
A nice you're way ahead of me on the Helm chart configuration! A quick search through the codebase doesnt turn up any other uses in Python. However, I'd expect the url in general to control which path is used for Hasura. I'm not sure if there would be adverse affects to modifying this variable as a result.
m

Marko Jamedzija

09/17/2021, 3:36 PM
Hah, thanks 😄 I saw this `PREFECT_SERVER__API__URL`is set up in graphql pod as well, so I guess changing this everywhere would probably bring some issues…
😅 1