Skip to content

Commit 951c16a

Browse files
refactor: remove legacy code code_task_v1 (#14)
* refactor: remove legacy file-based storage code_task_v1.py Removes the deprecated file-based task storage system as it has been replaced by the v2 Supabase-based system. This includes: - Legacy in-memory task storage - File persistence to tasks_backup.json - Deprecated run_ai_code_task() function - Legacy Docker container execution code Co-authored-by: Elwynn Chen <[email protected]> * 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 <[email protected]> --------- Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: Elwynn Chen <[email protected]>
1 parent 363daa5 commit 951c16a

File tree

2 files changed

+0
-570
lines changed

2 files changed

+0
-570
lines changed

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)