Skip to content

fix: stop sleeping for one second after an erroring query - #16157

Open
fornwall wants to merge 1 commit into
dbt-labs:mainfrom
fornwall:no-last-sleep
Open

fornwall wants to merge 1 commit into
dbt-labs:mainfrom
fornwall:no-last-sleep

Conversation

@fornwall

@fornwall fornwall commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

execute_query_with_retry slept 1s inside its error arm before re-checking the loop condition, so it slept after its last attempt too.

The sole caller (AdapterImpl::execute_inner) passes retry_limit = 1, so there was never a second attempt - every erroring statement just paid a wasted second.

@fornwall
fornwall requested a review from a team as a code owner September 1, 2026 20:34
@cla-bot cla-bot Bot added the cla:yes label Sep 1, 2026
`execute_query_with_retry` slept 1s inside its error arm before
re-checking the loop condition, so it slept after its last attempt too.

The sole caller (`AdapterImpl::execute_inner`) passes `retry_limit = 1`,
so there was never a second attempt - every erroring statement just paid
a wasted second.

Signed-off-by: Fredrik Fornwall <fredrik@fornwall.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant