MCPcopy Create free account
hub / github.com/caesarHQ/textSQL / run_tasks

Function run_tasks

api/app/api/routes.py:69–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 natural_language_query = replace_unsupported_localities(natural_language_query, scope)
68
69 async def run_tasks():
70 relevant_tables_task = asyncio.create_task(get_relevant_tables_async(natural_language_query, scope, session_id = session_id))
71 labels_task = asyncio.create_task(create_labels(natural_language_query, scope, parent_id=parent_id, session_id = session_id))
72
73 table_names = await relevant_tables_task
74 generation_id = await labels_task
75 return table_names, generation_id
76
77 table_names, generation_id = asyncio.run(run_tasks())
78

Callers 1

get_tablesFunction · 0.85

Calls 2

create_labelsFunction · 0.85

Tested by

no test coverage detected