Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (13)
📝 WalkthroughWalkthroughThis pull request refactors the Celery task dispatch system by replacing generic function-path-based job starters with dedicated, type-specific task helpers. All call sites are updated to use explicit starters like Changes
Sequence Diagram(s)sequenceDiagram
participant API as API Route
participant Starter as Task Starter<br/>(start_stt_batch_submission)
participant Celery as Celery Broker
participant Worker as Worker
participant Tracer as Trace Manager<br/>(_set_trace)
participant Service as Service<br/>(execute_batch_submission)
API->>Starter: start_stt_batch_submission(project_id, job_id, trace_id, ...)
Starter->>Celery: run_stt_batch_submission.delay(...)
Celery-->>Worker: Task enqueued (high_priority queue)
Worker->>Tracer: _set_trace(trace_id)
Tracer->>Tracer: Set asgi_correlation_id
Worker->>Service: execute_batch_submission(project_id, job_id, task_id, ...)
Service-->>Worker: Result
Worker-->>API: Task ID returned
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Target issue is #PLEASE_TYPE_ISSUE_NUMBER
Explain the motivation for making this change. What existing problem does the pull request solve?
Checklist
Before submitting a pull request, please ensure that you mark these task.
fastapi run --reload app/main.pyordocker compose upin the repository root and test.Notes
Please add here if any other information is required for the reviewer.
Summary by CodeRabbit
Release Notes
Refactor
Chores