Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
haiqi96 committed Jun 19, 2024
1 parent 92e69fd commit f0ee686
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ async def acquire_reducer_for_job(job: SearchJob):
logger.info(f"Got reducer for job {job.id} at {reducer_host}:{reducer_port}")


def handle_pending_search_jobs(
def handle_pending_query_jobs(
db_conn_pool,
clp_metadata_db_conn_params: Dict[str, any],
results_cache_uri: str,
Expand Down Expand Up @@ -648,7 +648,7 @@ async def handle_jobs(

tasks = [handle_updating_task]
while True:
reducer_acquisition_tasks = handle_pending_search_jobs(
reducer_acquisition_tasks = handle_pending_query_jobs(
db_conn_pool,
clp_metadata_db_conn_params,
results_cache_uri,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def valid_status(cls, field):


class InternalJobState(Enum):
PENDING = auto()
WAITING_FOR_REDUCER = auto()
WAITING_FOR_DISPATCH = auto()
RUNNING = auto()
Expand Down

0 comments on commit f0ee686

Please sign in to comment.