Skip to content

Commit 84d267a

Browse files
rkuo-danswerRichard Kuo (Onyx)
andauthored
fix restart (onyx-dot-app#4726)
Co-authored-by: Richard Kuo (Onyx) <rkuo@onyx.app>
1 parent 34aea6a commit 84d267a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

deployment/docker_compose/docker-compose.dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ services:
323323
else
324324
exec uvicorn model_server.main:app --host 0.0.0.0 --port 9000;
325325
fi"
326-
restart: on-failure
326+
restart: always
327327
environment:
328328
- MIN_THREADS_ML_MODELS=${MIN_THREADS_ML_MODELS:-}
329329
# Set to debug to get more fine-grained logs
@@ -354,7 +354,7 @@ services:
354354
else
355355
exec uvicorn model_server.main:app --host 0.0.0.0 --port 9000;
356356
fi"
357-
restart: on-failure
357+
restart: always
358358
environment:
359359
- INDEX_BATCH_SIZE=${INDEX_BATCH_SIZE:-}
360360
- MIN_THREADS_ML_MODELS=${MIN_THREADS_ML_MODELS:-}

deployment/docker_compose/docker-compose.prod.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ services:
145145
else
146146
exec uvicorn model_server.main:app --host 0.0.0.0 --port 9000;
147147
fi"
148-
restart: on-failure
148+
restart: always
149149
environment:
150150
- MIN_THREADS_ML_MODELS=${MIN_THREADS_ML_MODELS:-}
151151
# Set to debug to get more fine-grained logs
@@ -173,7 +173,7 @@ services:
173173
else
174174
exec uvicorn model_server.main:app --host 0.0.0.0 --port 9000;
175175
fi"
176-
restart: on-failure
176+
restart: always
177177
environment:
178178
- MIN_THREADS_ML_MODELS=${MIN_THREADS_ML_MODELS:-}
179179
- INDEXING_ONLY=True

0 commit comments

Comments
 (0)