-
Notifications
You must be signed in to change notification settings - Fork 24
fix(concurrent perpartition cursor): Increase throttle time to 10 minutes #542
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
fix(concurrent perpartition cursor): Increase throttle time to 10 minutes #542
Conversation
📝 WalkthroughWalkthroughThe throttle interval for emitting state messages in the Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant ConcurrentPartitionCursor
Caller->>ConcurrentPartitionCursor: Call _throttle_state_message()
ConcurrentPartitionCursor->>ConcurrentPartitionCursor: Check time since last state message
alt If elapsed time >= 600s
ConcurrentPartitionCursor-->>Caller: Emit state message
else If elapsed time < 600s
ConcurrentPartitionCursor-->>Caller: Return None (no emission)
end
Possibly related PRs
Suggested reviewers
Would you like me to help draft a quick note suggesting the impact of this change on downstream components or tests, wdyt? Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (1)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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: 0
🧹 Nitpick comments (1)
airbyte_cdk/sources/declarative/incremental/concurrent_partition_cursor.py (1)
231-236
: State message throttling interval increased from 1 minute to 10 minutes.The throttle interval for state message emission has been increased from 60 seconds to 600 seconds (10 minutes). This change should reduce the overhead associated with frequent state emissions.
Would it be helpful to add a comment explaining why this throttle change was made? Perhaps mentioning the performance benefits or any specific issues it resolves? This would help future maintainers understand the reasoning behind this specific timing value, wdyt?
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
airbyte_cdk/sources/declarative/incremental/concurrent_partition_cursor.py
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (6)
- GitHub Check: Check: 'source-hardcoded-records' (skip=false)
- GitHub Check: Check: 'source-shopify' (skip=false)
- GitHub Check: Check: 'source-amplitude' (skip=false)
- GitHub Check: Pytest (Fast)
- GitHub Check: Pytest (All, Python 3.11, Ubuntu)
- GitHub Check: Pytest (All, Python 3.10, Ubuntu)
Increase the time between state messages from 1 minute to 10 minutes.
Summary by CodeRabbit