Channels
datahub-flyte
scipy-2023-workshop
flyte-school
agent-support-memverge
flyte-build
flyte-users-berlin
scipy-2023-sprint
auth
flyte-bazel
large-language-models
contribute
bioinformatics-computational-biology
great-content
in-flyte-conversations
flyte-on-gcp
show-and-tell
shameless-promotion
linkedin-flyte
random
deployment
hacktoberfest-2023
flyte-github
feature-discussions
linen-test
flytelab
flytekit-java
integrations
ray-on-flyte
conference-talks
release
flyte-ui-ux
workflow-building-ui-proj
writing-w-sfloris
jobs
hacktoberfest-2022
torch-elastic
flyte-console
engineeringlabs
helsing-flyte
flyte-documentation
konan-integration
databricks-integration
ray-integration
wg-gpu-types
flytekit
ecosystem-unionml
scipy-2022-sprint
announcements
ask-the-community
flyte-deployment
introductions
events
Powered by
#ask-the-community
Title
# ask-the-community
s
Stefano
10/19/2023, 12:38 PM
Does anyone know how to execute tasks remotely with a POST request? Is there documentation on it somewhere?
@Ketan (kumare3)
Can you possibly assist?
k
Ketan (kumare3)
10/19/2023, 8:42 PM
can you not use one of the generated clients -
https://github.com/flyteorg/flyte/tree/master/flyteidl/clients/go
or python (flytekit.remote) or others in this repo
you can use rest, but the api is harder to use that way
s
Stefano
10/20/2023, 10:51 AM
Thanks
@Ketan (kumare3)
. We have a front-end either built in Angular or React and are looking at kicking of flyte tasks from there.
k
Ketan (kumare3)
10/20/2023, 1:53 PM
Aah that works
We have a typescript client
https://github.com/flyteorg/flyte/tree/master/flyteidl/gen/pb-js
https://github.com/flyteorg/flyteconsole/tree/master/packages/flyte-api
Cc
@Frank Flitton
is that right
f
Frank Flitton
10/20/2023, 5:00 PM
Yes, that's correct. You can see how we build the requests and encode/decode protobufs in the Flyte Console in these files:
https://github.com/flyteorg/flyteconsole/blob/master/packages/console/src/models/Task/api.ts
https://github.com/flyteorg/flyteconsole/blob/master/packages/console/src/models/AdminEntity/AdminEntity.ts
The proto definitions can be added to your project from here:
https://www.npmjs.com/package/@flyteorg/flyteidl
Some helpful util fns are here (timestamps, etc):
https://github.com/flyteorg/flyteconsole/blob/master/packages/console/src/common/utils.ts
You can always monitor the network requests from chrome to find the specific API endpoint(s) you need then reference these protos to build the request.
Post