fix(autostart.lic): block on dependency with Script.run before DR scripts#2315
Conversation
…cripts start start_scripts_if_available only waits 0.25s for a script to complete. dependency.lic takes longer, so parse_args() is still undefined when autostart scripts begin. Script.run blocks until the script exits the @@running list, guaranteeing the bridge is available. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
To continue reviewing without waiting, purchase usage credits in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, 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 have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ 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 |
Summary
start_scripts_if_availableis async -- it only waits 0.25s before moving ondependency.lictakes longer than that, soparse_args()is still undefined when autostart scripts beginScript.run('dependency'), which blocks until the script fully exits the@@runninglistRoot cause
start_scripts_if_available(lich-5global_defs.rb:42-57) callsstart_scriptthen polls for up to 0.25s:Script.run(script.rb:365-369) blocks indefinitely until the script finishes:Test plan
parse_args()errors no longer appear on startup🤖 Generated with Claude Code