Skip to content

Use new wait for status endpoint in await_running#608

Merged
alb-rl merged 2 commits intomainfrom
alb/add-long-poll-to-await-running
Jul 8, 2025
Merged

Use new wait for status endpoint in await_running#608
alb-rl merged 2 commits intomainfrom
alb/add-long-poll-to-await-running

Conversation

@alb-rl
Copy link
Contributor

@alb-rl alb-rl commented Jul 8, 2025

Similar to runloopai/api-client-ts#590, use long polling API method in await_running.

Instead of making a bunch of retrieve devbox calls, we use a single wait_for_status call. If it timesout, retry. It will finish when the devbox reaches running or failure state.

@alb-rl alb-rl requested review from evan-runloopai and tode-rl July 8, 2025 23:37
Copy link
Contributor

@tode-rl tode-rl left a comment

Choose a reason for hiding this comment

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

looks fine to me; is 10s too short? will leave that to the team

@alb-rl alb-rl merged commit 6b47516 into main Jul 8, 2025
6 of 7 checks passed
@alb-rl alb-rl deleted the alb/add-long-poll-to-await-running branch July 8, 2025 23:55
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