Join Slack
Powered by
How can I call api to get all tasks and datatype o...
# ask-the-community
t
Trọng Đạt Bùi
01/10/2024, 11:06 AM
How can I call api to get all tasks and datatype of input and output tasks?
s
Samhita Alla
01/10/2024, 1:47 PM
do you want to fetch all the registered tasks from a particular project-domain?
k
Ketan (kumare3)
01/10/2024, 3:30 PM
Flyteremote.client
t
Trọng Đạt Bùi
01/10/2024, 4:33 PM
@Samhita Alla
Yes, my app want to show all the registered tasks and task informations such as datatype of input, output. Call api to do that?
s
Samhita Alla
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
)
6
Views
Open in Slack
Previous
Next