fix : add manual retry action for failed analysis jobs#2362
fix : add manual retry action for failed analysis jobs#2362tmdeveloper007 wants to merge 1 commit into
Conversation
Users shown a FAILED status now get a functional Retry button that calls POST /api/analysis-jobs/<id> instead of just reloading the page. Adds retryJob() to analysisJobService which resets the job to QUEUED and re-queues it via Bull, allowing users to retry without re-entering the repository URL. Fixes nisshchayarathi#2121
|
@tmdeveloper007 is attempting to deploy a commit to the Nisshchaya's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Warning Review limit reached
More reviews will be available in 56 minutes and 27 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 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 |
🎉 Thanks for your contribution, @tmdeveloper007!Your PR has passed our automated GSSoC quality checks. Here's a quick summary:
A maintainer will review your PR soon. Please be patient and available for feedback. 💪 GSSoC'26 automation · Maintainer: @nisshchayarathi |
|
CI status: Build, Type Check, Lint, CodeQL, GSSoC checks all green. Note: Unit Tests job reports a pre-existing failure in app/api/auth/sessions/tests/route.test.ts due to a Jest/ESM module compatibility issue (jose/dist/browser/index.js). This failure exists on the upstream main branch and is unrelated to this PR. Ready for merge. |
Fixes #2121
Summary
When an analysis job enters a FAILED state, the UI showed a Retry Job button but clicking it only reloaded the page — it did not actually retry the analysis. Users had to manually navigate back and re-submit the repository URL.
Changes
Security Impact
Only the job owner can retry their own jobs. Non-owners receive a 404 (via enforceRepositoryPermission) and cannot manipulate other users' jobs.