Skip to content

Commit

Permalink
REMOVE BEFORE MERGE: disable develop constraint in prediction for tes…
Browse files Browse the repository at this point in the history
…ting
  • Loading branch information
cmelone committed Oct 29, 2024
1 parent 40e83ff commit 4c180a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gantry/routes/prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async def select_sample(query: str, filters: dict, extra_params: list = []) -> l
# within this combo, variants included
query = f"""
SELECT cpu_mean, cpu_max, mem_mean, mem_max FROM jobs
WHERE ref='develop' AND {' AND '.join(f'{param}=?' for param in filters.keys())}
WHERE {' AND '.join(f'{param}=?' for param in filters.keys())}
ORDER BY end DESC LIMIT {IDEAL_SAMPLE}
"""

Expand Down Expand Up @@ -158,7 +158,7 @@ async def select_sample(query: str, filters: dict, extra_params: list = []) -> l

query = f"""
SELECT cpu_mean, cpu_max, mem_mean, mem_max FROM jobs
WHERE ref='develop' AND {' AND '.join(f'{param}=?' for param in filters.keys())}
WHERE {' AND '.join(f'{param}=?' for param in filters.keys())}
AND {' AND '.join(exp_variant_conditions)}
ORDER BY end DESC LIMIT {IDEAL_SAMPLE}
"""
Expand Down

0 comments on commit 4c180a9

Please sign in to comment.