https://flyte.org logo
#ask-the-community
Title
# ask-the-community
d

Dmytro Vremenko

06/26/2023, 3:33 PM
Hi, does anyone have a working example of using
custom_info
field within
TaskExecutionEvent
to relay custom information about a task run?
k

Ketan (kumare3)

06/26/2023, 3:37 PM
Are you writing a plugin?
d

Dmytro Vremenko

06/26/2023, 4:37 PM
yeah, a Python plugin
k

Ketan (kumare3)

06/26/2023, 5:43 PM
ohhh, cc @Kevin Su instead of a python plugin, can we use Flyte Agent framework for this. from the python plugins (flytekit side) you cannot, but the agents you can
d

Dmytro Vremenko

06/26/2023, 11:45 PM
sorry, never mind, not writing a plugin, just need a way to send some custom information about a Task to using Flyte External Messages. Is this something that I can use
TaskExecutionEvent
and its
custom_info
field? And if so, how?
k

Ketan (kumare3)

06/27/2023, 2:08 AM
Ohh then use flytedeck
d

Dmytro Vremenko

06/27/2023, 1:34 PM
are flytedecks considered as external flyte messages (would something like
TaskExecutionEventRequest
have access to the task's deck)? or would I only be able to view the deck output through the flyte UI when reviewing specific runs?
k

Ketan (kumare3)

06/27/2023, 1:39 PM
Aah I get what you want now, ya flytedecks are html and you can view them programmatically, but that’s not right for you. In that case the only option is outputs - today flytekit cannot send events to FlyteAdmin
d

Dmytro Vremenko

06/27/2023, 5:56 PM
I see, thank you! What is the use case of `TaskExecutionEvent' ?
k

Kevin Su

06/27/2023, 6:31 PM
propeller send a event to update the task, workflow table. for example, update the status. we also send event to sqs, so you can write a consumer to read those events.
d

Dmytro Vremenko

06/28/2023, 3:27 PM
does any instance of the events get automatically sent to sqs? how does the event get sent when I call
TaskExecutionEvent
for example? And do I have any control over the destination of the event? Instead of sending to sqs can I send to Pub/Sub, for example?
k

Kevin Su

06/28/2023, 4:54 PM