Skip to content

Commit

Permalink
clp-package: Fix errors and warnings in search scheduler (fixes #393). (
Browse files Browse the repository at this point in the history
  • Loading branch information
wraymo authored May 14, 2024
1 parent 07c75ab commit c9854b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/clp-py-utils/clp_py_utils/sql_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ def create_connection():
return self.create_connection(disable_localhost_socket_connection)

if "mysql" == self.database_config.type:
dialect = mysqlconnector.dialect
dialect = mysqlconnector.dialect()
elif "mariadb" == self.database_config.type:
dialect = mariadbconnector.dialect
dialect = mariadbconnector.dialect()
else:
raise NotImplementedError
return ConnectionPoolWrapper(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ async def handle_jobs(
db_conn_pool, results_cache_uri, num_archives_to_search_per_sub_job
)
if 0 == len(reducer_acquisition_tasks):
tasks.append(asyncio.sleep(jobs_poll_delay))
tasks.append(asyncio.create_task(asyncio.sleep(jobs_poll_delay)))
else:
tasks.extend(reducer_acquisition_tasks)

Expand Down

0 comments on commit c9854b3

Please sign in to comment.