-
Notifications
You must be signed in to change notification settings - Fork 289
Raise ArgumentError when using delay with FIFO queues #930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Warning Rate limit exceeded@mensfeld has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 9 minutes and 9 seconds before requesting another review. ⌛ 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. 📒 Files selected for processing (3)
WalkthroughThe Shoryuken adapter's Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
lib/active_job/queue_adapters/shoryuken_adapter.rb(1 hunks)spec/shared_examples_for_active_job.rb(1 hunks)
🧰 Additional context used
🪛 RuboCop (1.81.7)
spec/shared_examples_for_active_job.rb
[convention] 292-292: Line is too long. [128/125]
(Layout/LineLength)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
- GitHub Check: Integrations (3.2)
- GitHub Check: Integrations (3.3)
- GitHub Check: Integrations (3.4)
- GitHub Check: Integrations (3.4)
- GitHub Check: Integrations (3.3)
- GitHub Check: Integrations (3.2)
6833c97 to
d2d9006
Compare
FIFO queues in SQS do not support per-message DelaySeconds. This caused confusing AWS errors when using ActiveJob's retry_on with FIFO queues, since Rails 6.1+ defaults to wait: 3.seconds. Add early validation in enqueue_at to raise a clear ArgumentError with actionable guidance when attempting to use delays with FIFO queues. The check happens before any async wrapping to ensure synchronous failure. Fixes #924 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
d2d9006 to
04f4a29
Compare
FIFO queues in SQS do not support per-message DelaySeconds. This caused confusing AWS errors when using ActiveJob's retry_on with FIFO queues, since Rails 6.1+ defaults to wait: 3.seconds.
Add early validation in enqueue_at to raise a clear ArgumentError with actionable guidance when attempting to use delays with FIFO queues. The check happens before any async wrapping to ensure synchronous failure.
Fixes #924
close #924
Summary by CodeRabbit
Release Notes
New Features
Documentation
Tests
✏️ Tip: You can customize this high-level summary in your review settings.