Skip to content

Commit 327839a

Browse files
authored
feat(executor_manager): increase default MAX_CONCURRENT_TASKS from 5 to 30 (#225)
Update the default maximum concurrent executor tasks to 30 for improved parallel task processing capacity. Changes applied to: - docker-compose.yml environment variable - scheduler.py default fallback value - routers.py load API default fallback value Co-authored-by: qdaxb <4157870+qdaxb@users.noreply.github.com>
1 parent f090ccd commit 327839a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ services:
105105
environment:
106106
- TZ=Asia/Shanghai
107107
- TASK_API_DOMAIN=http://backend:8000
108-
- MAX_CONCURRENT_TASKS=5
108+
- MAX_CONCURRENT_TASKS=30
109109
- PORT=8001
110110
- CALLBACK_HOST=http://executor_manager:8001
111111
- NETWORK=wegent-network

executor_manager/routers/routers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ async def get_executor_load(http_request: Request):
161161
logger.info(f"Received request to get executor load from {client_ip}")
162162
executor = ExecutorDispatcher.get_executor(EXECUTOR_DISPATCHER_MODE)
163163
result = executor.get_executor_count()
164-
result["total"] = int(os.getenv("MAX_CONCURRENT_TASKS", "5"))
164+
result["total"] = int(os.getenv("MAX_CONCURRENT_TASKS", "30"))
165165
return result
166166
except Exception as e:
167167
logger.error(f"Error getting executor load: {e}")

executor_manager/scheduler/scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(self):
4242
self.api_client = TaskApiClient()
4343
self.task_processor = TaskProcessor()
4444
self.running = False
45-
self.max_concurrent_tasks = int(os.getenv("MAX_CONCURRENT_TASKS", "5"))
45+
self.max_concurrent_tasks = int(os.getenv("MAX_CONCURRENT_TASKS", "30"))
4646
self.max_offline_concurrent_tasks = int(os.getenv("MAX_OFFLINE_CONCURRENT_TASKS", "10"))
4747

4848
# Configure APScheduler

0 commit comments

Comments
 (0)