默认禁用runninghub的并发(适配绝大多数的普通rh会员场景)

This commit is contained in:
puke
2025-11-20 00:55:32 +08:00
parent 0f4fff04ba
commit fc70256152

View File

@@ -44,7 +44,7 @@ from pixelle_video.utils.content_generators import (
# Whether to enable parallel processing for RunningHub workflows
RUNNING_HUB_PARALLEL_ENABLED = True
# Parallel limit for RunningHub workflows
RUNNING_HUB_PARALLEL_LIMIT = 5
RUNNING_HUB_PARALLEL_LIMIT = 1
class StandardPipeline(BasePipeline):
@@ -379,7 +379,7 @@ class StandardPipeline(BasePipeline):
(config.image_workflow and config.image_workflow.startswith("runninghub/"))
)
if is_runninghub and RUNNING_HUB_PARALLEL_ENABLED:
if is_runninghub and RUNNING_HUB_PARALLEL_ENABLED and RUNNING_HUB_PARALLEL_LIMIT > 1:
logger.info(f"🚀 Using parallel processing for RunningHub workflows (max {RUNNING_HUB_PARALLEL_LIMIT} concurrent)")
logger.info(f" TTS: {'runninghub' if config.tts_workflow and config.tts_workflow.startswith('runninghub/') else 'local'}")
logger.info(f" Image: {'runninghub' if config.image_workflow and config.image_workflow.startswith('runninghub/') else 'local'}")