Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cmelone committed Feb 15, 2024
1 parent 59cdc1e commit d682821
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gantry/routes/prediction/prediction.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import asyncio
import logging

# TODO clean all this up check obsidian notes to make sure everything's implemented

import aiosqlite

from gantry.routes.prediction.current_mapping import pkg_mappings
from gantry.util import k8s, spec

IDEAL_SAMPLE = 4
IDEAL_SAMPLE = 5
DEFAULT_CPU_REQUEST = 1.0
DEFAULT_MEM_REQUEST = 2000 * 1_000_000 # 2GB in bytes

Expand Down Expand Up @@ -74,7 +72,7 @@ async def predict_bulk(db: aiosqlite.Connection, builds: list) -> list:
args:
builds: list of dicts (see predict_single)
returns: see predict_single)
returns: see predict_single
"""

return await asyncio.gather(*(predict_single(db, build) for build in builds))
Expand Down

0 comments on commit d682821

Please sign in to comment.