fancy-yak-23698
04/18/2024, 7:21 PMflytectl
to retrieve the outputs from a task?
For some background, I'd like to generate a list of task runs that includes some of the arguments passed to the task as well as the s3 location of the output dataframe. I plan on doing further analysis on this data in a notebook.
I've looked at flytectl get
and the list of available nouns, but I don't see anything that provides the output of the tasks. Is there a way to get this information from the command line or via the python api?fancy-yak-23698
04/18/2024, 7:22 PMproud-answer-87162
04/18/2024, 7:27 PMfancy-yak-23698
04/18/2024, 7:36 PMflytectl get execution ...
but I assumed "execution" meant the specific instance of a workflow. I think I want something like a "task execution".
The output of flytectl get execution ...
does include a closure.outputs
field that has a uri
pointing to an s3 object (a protobuf .pb file which I haven't tried to inspect) but there is nothing indicating a specific task run.proud-answer-87162
04/18/2024, 7:41 PM/executionId/taskNumber
to fetch the specific details you're looking for (i think). let me poke around a bit and see if that's called by any of the flytectl codefancy-yak-23698
04/18/2024, 7:46 PM--nodeID
, as well as --details
. I'm trying to figure out what "oeh94k9r2r" in the docs might mean in my context.proud-answer-87162
04/18/2024, 7:50 PMflytectl get execution -p flyteproject -d development executionId --details
fancy-yak-23698
04/18/2024, 7:51 PMfancy-yak-23698
04/18/2024, 7:51 PMproud-answer-87162
04/18/2024, 7:51 PMproud-answer-87162
04/18/2024, 7:52 PMfancy-yak-23698
04/18/2024, 7:52 PMproud-answer-87162
04/18/2024, 7:54 PMfancy-yak-23698
04/22/2024, 6:50 PMFlyteRemote
a bit, and while I find it easy to get the latest execution or a specific execution, I don't see a simple way to get a list of executions that fit some constraints. Specifically, I'd like to filter on the launch plan name and the fixed parameters passed to the workflow. The only method in the FlyteRemote
class that accepts filters is list_signals
, which works for a specific execution name if I understand it correctly.
I see the same question asked in . At the time, it was marked as to-do, but this is from two years ago, so maybe this has been implemented?
So I think I'll focus on retrieving this information from flytectl get execution
and just parse the pages of json.proud-answer-87162
04/22/2024, 8:53 PMlist_executions_paginated
, but i haven't used it myself. and if the cli is working for ya - 🚀