Skip to content

Commit

Permalink
fix job query based on metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
gpetretto committed Mar 6, 2024
1 parent 19e0c8a commit 7709359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jobflow_remote/jobs/jobcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7709359

Please sign in to comment.