mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 00:05:55 +08:00
Fix executor name (#6080)
### What problem does this PR solve? Fix executor name ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
12c3023a22
commit
5d75b6be62
@ -24,9 +24,6 @@ from graphrag.general.index import run_graphrag
|
|||||||
from graphrag.utils import get_llm_cache, set_llm_cache, get_tags_from_cache, set_tags_to_cache
|
from graphrag.utils import get_llm_cache, set_llm_cache, get_tags_from_cache, set_tags_to_cache
|
||||||
from rag.prompts import keyword_extraction, question_proposal, content_tagging
|
from rag.prompts import keyword_extraction, question_proposal, content_tagging
|
||||||
|
|
||||||
CONSUMER_NO = "0" if len(sys.argv) < 2 else sys.argv[1]
|
|
||||||
CONSUMER_NAME = "task_executor_" + CONSUMER_NO
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
@ -87,7 +84,9 @@ FACTORY = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
UNACKED_ITERATOR = None
|
UNACKED_ITERATOR = None
|
||||||
CONSUMER_NAME = "task_consumer_" + CONSUMER_NO
|
|
||||||
|
CONSUMER_NO = "0" if len(sys.argv) < 2 else sys.argv[1]
|
||||||
|
CONSUMER_NAME = "task_executor_" + CONSUMER_NO
|
||||||
BOOT_AT = datetime.now().astimezone().isoformat(timespec="milliseconds")
|
BOOT_AT = datetime.now().astimezone().isoformat(timespec="milliseconds")
|
||||||
PENDING_TASKS = 0
|
PENDING_TASKS = 0
|
||||||
LAG_TASKS = 0
|
LAG_TASKS = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user