-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Avoid starting worker if model download RC != 0
- Loading branch information
Showing
2 changed files
with
11 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
@echo off | ||
cd /d %~dp0 | ||
call runtime python -s download_models.py | ||
if ERRORLEVEL 1 GOTO ABORT | ||
echo "Model Download OK. Starting worker..." | ||
call runtime python -s run_worker.py %* | ||
|
||
:ABORT | ||
echo "download_models.py exited with error code. Aborting" |
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