Skip to content

[bug] Move server creation and server start in the same thread#1375

Open
hao-aaron wants to merge 1 commit intoNovaSky-AI:mainfrom
hao-aaron:router
Open

[bug] Move server creation and server start in the same thread#1375
hao-aaron wants to merge 1 commit intoNovaSky-AI:mainfrom
hao-aaron:router

Conversation

@hao-aaron
Copy link
Contributor

@hao-aaron hao-aaron commented Mar 23, 2026

x
Signed-off-by: ahao-anyscale <ahao@anyscale.com>
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request refactors the server startup logic in skyrl/backends/skyrl_train/inference_servers/router.py. The start method's server initialization and execution, previously handled directly, are now encapsulated within a new private method, _run_server. This change improves code organization by separating the server's asynchronous execution within a background thread from the main start method's responsibilities, which now primarily handle initial setup and thread management.

Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

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.

1 participant