Is there a way to use Decks in Connectors? My conn...
# flyte-connectors
c
Is there a way to use Decks in Connectors? My connector polls a long running job in a different backend and I like to create a Streaming Deck that shows the progress of the job. Would I have to override the
async _get
method of
AsyncConnecorExecutorMixin
and use the resource output as input for my deck? If I invoke Deck.publish() inside that method, will it show in the Flyte Console?
g
I haven’t tried it, but i think ideally it should just work. in the regular python task, we upload the deck file to
raw_output_prefix/deck.html
, and console will real the deck file from that path. Therefore, if you call publish in the _get method, the deck file will be uploading to
raw_output_prefix/deck.html
as well, and the console should show it.
c
Great. I will give it a try
g
let me know if it doesn’t work. will love to help.