diff --git a/src/jobflow_remote/jobs/jobcontroller.py b/src/jobflow_remote/jobs/jobcontroller.py index 1233d4a9..fffba883 100644 --- a/src/jobflow_remote/jobs/jobcontroller.py +++ b/src/jobflow_remote/jobs/jobcontroller.py @@ -256,7 +256,7 @@ def _build_query_job( query["name"] = {"$regex": mongo_regex} if metadata: - metadata_dict = {f"metadata.{k}": v for k, v in metadata.items()} + metadata_dict = {f"job.metadata.{k}": v for k, v in metadata.items()} query.update(metadata_dict) return query