New RunLLM response generated: >>>*# Question* Hi...
# runllm-flyte-trial
j
New RunLLM response generated: >>>*# Question* Hi, I’d need to fetch the list of executions based on tags or labels and I was trying to see what filter values can be applied to the filters argument in the recent_executions method (https://docs.flyte.org/en/latest/api/flytekit/generated/flytekit.remote.remote.FlyteRemote.html#flytekit.remote.remote.FlyteRemote.recent_executions), I took a look at the source code (https://github.com/flyteorg/flyte/blob/master/flyteadmin/pkg/common/filters_test.go) and from what I got I should be able to do something like
Copy code
remote.recent_executions(filters=[Filter(key="project", value="flytesnacks")])
but this raises the error
Copy code
FlyteInvalidInputException: USER:BadInputToAPI: error=None, cause=<_InactiveRpcError of RPC that terminated with:
        status = StatusCode.INVALID_ARGUMENT
        details = "'e.project' is invalid filter"
        debug_error_string = "UNKNOWN:Error received from peer  {created_time:"2024-10-14T13:07:40.919415+02:00", grpc_status:3, grpc_message:"\'e.project\' is invalid 
filter"}"
Could please someone explain me what are the possible values to be se in the filter? # Answer Filtering executions by tags or labels is not currently supported in Flyte. According to this GitHub issue, Flyte does not support filtering resources using custom labels. The
ResourceListRequest
struct used to retrieve resources includes a
filters
field, but it does not explicitly support custom labels. For filtering by other fields, you can refer to the FlyteAdmin service documentation which provides details on how filters work. Common filters include fields like
project
,
domain
,
name
,
phase
, and
created_at
. Would you like more details on how to use these filters or any other specific information? Sources: - Core feature: Filter by labels Slack Link https://.slack.com/archives/CP2HDHKE1/p1728904433.472049 šŸ‘ 0 button šŸ‘Ž 0 button šŸ’” Hint: Mention @runllm in the thread for followups.