Sven Teresniak07/17/2020, 8:47 AM
from the CLI code?
I don't want to use
client = Client() result = client.graphql(query)
from a shell task. I like it pythonic https://docs.prefect.io/api/latest/client/client.html seems perfect. But it states
prefect run server …
On the other hand: prefect CLI uses the
Client for communication with Prefect Cloud
class for non-cloud schedules as well… 🙂
emre07/17/2020, 9:12 AM
works with prefect server as well. It’s probably just the documentation that is not updated, since prefect server is a more recent addition than prefect cloud. That being said, check this out: https://docs.prefect.io/api/latest/tasks/prefect.html#flowruntask Implicitly uses the
of your flow to trigger a flow run via graphql.
Sven Teresniak07/17/2020, 9:15 AM