Skip to content

Commit

Permalink
update service url for filter task requests. update query param names.
Browse files Browse the repository at this point in the history
  • Loading branch information
saikonen authored and talsperre committed Jan 22, 2025
1 parent 5b00f54 commit 2c9a81b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions metaflow/plugins/metadata_providers/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,12 @@ def filter_tasks_by_metadata(
List of task_ids that satisfy the query
"""
query_params = {
"field_name": field_name,
"field_value": field_value,
"metadata_field_name": field_name,
"metadata_field_value": field_value,
"query_step": query_step,
}
url = ServiceMetadataProvider._obj_path(flow_id, run_id, query_step)
url = f"{url}/tasks?{urlencode(query_params)}"
url = f"{url}/filtered_tasks?{urlencode(query_params)}"
return cls._request(None, url, "GET")

@staticmethod
Expand Down

0 comments on commit 2c9a81b

Please sign in to comment.