-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
worker: Add guard for model launching
Because model launching is a long process (download model, loading into GPU). client might encounter network error in the middle while worker is processing, add a guard the prevent duplicate operation with the same model_uid. Provide an rpc call check_model_launch_status() to return LuanchStatus, to determine whether worker is still working on this model_uid.
- Loading branch information
1 parent
7384b74
commit f7dfe27
Showing
1 changed file
with
70 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters