remove duplicate priority setting for merge summerization
This commit is contained in:
@@ -147,7 +147,6 @@ async def _handle_entity_relation_summary(
|
|||||||
llm_response_cache=llm_response_cache,
|
llm_response_cache=llm_response_cache,
|
||||||
max_tokens=summary_max_tokens,
|
max_tokens=summary_max_tokens,
|
||||||
cache_type="extract",
|
cache_type="extract",
|
||||||
priority=5, # Higher priority for entity/relation summary
|
|
||||||
)
|
)
|
||||||
return summary
|
return summary
|
||||||
|
|
||||||
|
@@ -308,7 +308,7 @@ def priority_limit_async_func_call(max_size: int):
|
|||||||
"""Worker that processes tasks from the priority queue"""
|
"""Worker that processes tasks from the priority queue"""
|
||||||
while True:
|
while True:
|
||||||
# Get task from queue (priority, task_id, future, args, kwargs)
|
# Get task from queue (priority, task_id, future, args, kwargs)
|
||||||
priority, _, future, args, kwargs = await queue.get()
|
_, _, future, args, kwargs = await queue.get()
|
||||||
try:
|
try:
|
||||||
# Execute the function
|
# Execute the function
|
||||||
result = await func(*args, **kwargs)
|
result = await func(*args, **kwargs)
|
||||||
|
Reference in New Issue
Block a user