Skip to content

Conversation

@zjy365
Copy link
Collaborator

@zjy365 zjy365 commented Dec 26, 2025

…ckoff

  • Implement exponential backoff for health checks (200ms initial, max 5000ms)
  • Reduce initial check interval from 500ms to 200ms for faster detection
  • Immediately check health status when status changes to Running
  • Use shorter interval (max 1s) when Running but not healthy yet
  • Reset check interval on status changes for faster response
  • Add WaitForReadyOptions interface for flexible configuration
  • Maintain backward compatibility with old API signature

This optimization significantly reduces the time to detect when a devbox becomes ready, improving overall creation performance.

Description

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Checklist:

  • I have updated the documentation (if required).
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I added a picture of a cute animal cause it's fun

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 26, 2025

Open in StackBlitz

npm i https://pkg.pr.new/zjy365/devbox-sdk@66

commit: 6f933cf

@github-actions github-actions bot added the build label Dec 26, 2025
…ckoff

- Implement exponential backoff for health checks (200ms initial, max 5000ms)
- Reduce initial check interval from 500ms to 200ms for faster detection
- Immediately check health status when status changes to Running
- Use shorter interval (max 1s) when Running but not healthy yet
- Reset check interval on status changes for faster response
- Add WaitForReadyOptions interface for flexible configuration
- Maintain backward compatibility with old API signature

This optimization significantly reduces the time to detect when a devbox
becomes ready, improving overall creation performance.
@zjy365 zjy365 merged commit 2e35b1d into main Jan 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants