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 d027279 commit 92e69fd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def main(argv):
f"""
CREATE TABLE IF NOT EXISTS `{QUERY_JOBS_TABLE_NAME}` (
`id` INT NOT NULL AUTO_INCREMENT,
`type`INT NOT NULL,
`type` INT NOT NULL,
`status` INT NOT NULL DEFAULT '{QueryJobStatus.PENDING}',
`creation_time` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
`num_tasks` INT NOT NULL DEFAULT '0',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def search(
self: Task,
job_id: str,
task_id: int,
search_config_obj: dict,
job_config_obj: dict,
archive_id: str,
clp_metadata_db_conn_params: dict,
results_cache_uri: str,
Expand All @@ -133,7 +133,7 @@ def search(

logger.info(f"Started task for job {job_id}")

search_config = SearchConfig.parse_obj(search_config_obj)
search_config = SearchConfig.parse_obj(job_config_obj)
sql_adapter = SQL_Adapter(Database.parse_obj(clp_metadata_db_conn_params))

start_time = datetime.datetime.now()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def get_task_group_for_job(
job_id=job.id,
archive_id=archive_ids[i],
task_id=task_ids[i],
search_config_obj=job_config_obj,
job_config_obj=job_config_obj,
clp_metadata_db_conn_params=clp_metadata_db_conn_params,
results_cache_uri=results_cache_uri,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
)
from job_orchestration.scheduler.job_config import ExtractConfig, QueryConfig, SearchConfig
from job_orchestration.scheduler.query.reducer_handler import ReducerHandlerMessageQueues
from pydantic import BaseModel, Field, validator
from pydantic import BaseModel, validator


class CompressionJob(BaseModel):
Expand Down

0 comments on commit 92e69fd

Please sign in to comment.