Skip to content

Conversation

@quoctruong
Copy link
Collaborator

@quoctruong quoctruong commented Jul 24, 2025

Add a retry logic with backoff for 60 seconds if there is a ECONNREFUSED when using script executor. This may happen if the service is not yet available.

@quoctruong quoctruong changed the title Quoct/test buildkit runner Add retry logic for ECONNREFUSED error Jul 24, 2025
)
const message = (err as any)?.response?.body?.message || err
if (String(message).includes('ECONNREFUSED')) {
// Retry for 60s since the service may not be established.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not blocking you can do in follow up.
Lets log that this happened so we can determine if we need to change anything based on frequency of this.

@quoctruong quoctruong merged commit 74e1165 into google-main Jul 24, 2025
2 checks passed
@quoctruong quoctruong deleted the quoct/test_buildkit_runner branch July 24, 2025 19:04
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.

3 participants