Skip to content

changing wait timers to 0.25 sec - #3288

Open
mkf-sysangels wants to merge 1 commit into
bunkerity:devfrom
mkf-sysangels:speed_up_DB_reconnects
Open

changing wait timers to 0.25 sec#3288
mkf-sysangels wants to merge 1 commit into
bunkerity:devfrom
mkf-sysangels:speed_up_DB_reconnects

Conversation

@mkf-sysangels

Copy link
Copy Markdown

unnecessary startup and recovery latency even when the waited condition resolved in milliseconds.

sleep(5) β†’ sleep(0.25)
Log message throttled: only printed every 8 iterations (every 2 seconds)

Impact

Loop Before After Worst-case reduction
DB init poll 5s per retry 0.25s per retry 4.75s per retry
DB connection retry 5s per retry 0.25s per retry 4.75s per retry
DB schema reflection 1s per retry 0.25s per retry 0.75s per retry
DB lock file poll 1s per retry 0.25s per retry 0.75s per retry

unnecessary startup and recovery latency even when the waited condition resolved in milliseconds.

sleep(5) β†’ sleep(0.25)
Log message throttled: only printed every 8 iterations (every 2 seconds)

Impact
Loop	Before	After	Worst-case reduction
DB init poll	5s per retry	0.25s per retry	4.75s per retry
DB connection retry	5s per retry	0.25s per retry	4.75s per retry
DB schema reflection	1s per retry	0.25s per retry	0.75s per retry
DB lock file poll	1s per retry	0.25s per retry	0.75s per retry
@TheophileDiot

Copy link
Copy Markdown
Member

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Apr 10, 2026

Copy link
Copy Markdown
βœ… Actions performed

Full review triggered.

@coderabbitai

coderabbitai Bot commented Apr 10, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@TheophileDiot has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 9 minutes and 57 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 9 minutes and 57 seconds.

βŒ› How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: c5e3efa8-ad1a-498a-8a85-88b33f5e29b6

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 93fb95d and 016b6be.

πŸ“’ Files selected for processing (2)
  • src/common/db/Database.py
  • src/scheduler/main.py

Comment @coderabbitai help to get the list of available commands and usage tips.

@TheophileDiot

Copy link
Copy Markdown
Member

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Apr 10, 2026

Copy link
Copy Markdown
βœ… Actions performed

Full review triggered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants