feat: change TRACE_QUEUE_MANAGER_INTERVAL default value (#5698)

Co-authored-by: takatost <takatost@gmail.com>
This commit is contained in:
Joe 2024-06-28 17:34:58 +08:00 committed by GitHub
parent 73ce945d40
commit dd5f3873da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 3 deletions

View File

@ -26,7 +26,6 @@ from werkzeug.exceptions import Unauthorized
from commands import register_commands
# DO NOT REMOVE BELOW
from events import event_handlers
from extensions import (
ext_celery,
ext_code_based_extension,
@ -43,7 +42,6 @@ from extensions import (
from extensions.ext_database import db
from extensions.ext_login import login_manager
from libs.passport import PassportService
from models import account, dataset, model, source, task, tool, tools, web
from services.account_service import AccountService
# DO NOT REMOVE ABOVE

View File

@ -660,7 +660,7 @@ class TraceTask:
trace_manager_timer = None
trace_manager_queue = queue.Queue()
trace_manager_interval = int(os.getenv("TRACE_QUEUE_MANAGER_INTERVAL", 1))
trace_manager_interval = int(os.getenv("TRACE_QUEUE_MANAGER_INTERVAL", 5))
trace_manager_batch_size = int(os.getenv("TRACE_QUEUE_MANAGER_BATCH_SIZE", 100))