Skip to content

Commit fda94b3

Browse files
refactor: clean up legacy code_task_v1 references in __init__.py
Removes commented imports and function references to the deleted code_task_v1 module: - Removed commented import of run_ai_code_task and _run_ai_code_task_internal - Removed commented legacy function calls in sequential processor - Simplified conditional logic to only handle v2 tasks Co-authored-by: Elwynn Chen <ObservedObserver@users.noreply.github.com>
1 parent b768f5b commit fda94b3

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

server/utils/__init__.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import queue
66
import atexit
77

8-
# from .code_task_v1 import run_ai_code_task, _run_ai_code_task_internal
98
from .code_task_v2 import run_ai_code_task_v2, _run_ai_code_task_v2_internal
109

1110
# Configure logging
@@ -47,8 +46,6 @@ def codex_worker():
4746
# Execute the task
4847
if is_v2:
4948
_execute_codex_task_v2(task_id, user_id, github_token)
50-
# else:
51-
# _execute_codex_task_legacy(task_id)
5249

5350
logger.info(f"✅ Codex task {task_id} completed")
5451

@@ -85,10 +82,6 @@ def _execute_codex_task_v2(task_id: int, user_id: str, github_token: str):
8582
# This will contain the actual execution logic
8683
return _run_ai_code_task_v2_internal(task_id, user_id, github_token)
8784

88-
# def _execute_codex_task_legacy(task_id):
89-
# """Execute legacy Codex task - internal method called by sequential processor"""
90-
# # This will contain the actual execution logic
91-
# return _run_ai_code_task_internal(task_id)
9285

9386
# Cleanup function to stop the worker thread
9487
def cleanup_codex_processor():

0 commit comments

Comments
 (0)