Join Slack
Powered by
How can I call api to get all tasks and datatype o...
# flyte-support
f
fresh-policeman-21476
01/10/2024, 11:06 AM
How can I call api to get all tasks and datatype of input and output tasks?
t
tall-lock-23197
01/10/2024, 1:47 PM
do you want to fetch all the registered tasks from a particular project-domain?
👍 1
f
freezing-airport-6809
01/10/2024, 3:30 PM
Flyteremote.client
👍 1
f
fresh-policeman-21476
01/10/2024, 4:33 PM
@tall-lock-23197
Yes, my app want to show all the registered tasks and task informations such as datatype of input, output. Call api to do that?
t
tall-lock-23197
01/10/2024, 5:21 PM
you should be able to use this:
https://github.com/flyteorg/flytekit/blob/b3f0c408188c4e240a9c593b7a8c734a7ddc6405/flytekit/clients/friendly.py#L122
(you need to access the flyte remote client; example:
https://github.com/flyteorg/airflow-provider-flyte/blob/bb5d94e7492869f0c0795cdf5a9a87335614b355/flyte_provider/hooks/flyte.py#L278
)
14
Views
Open in Slack
Previous
Next