Harshit Ghosh commited on
Commit ·
e319a61
1
Parent(s): ced4437
term to kill, and startup fix,
Browse files- app_new.py +1 -1
- start.sh +1 -1
app_new.py
CHANGED
|
@@ -1157,7 +1157,7 @@ def cancel_batch(batch_id):
|
|
| 1157 |
if user_id != current_user.id:
|
| 1158 |
abort(404)
|
| 1159 |
try:
|
| 1160 |
-
celery_app.control.revoke(batch_id, terminate=True, signal="
|
| 1161 |
log_audit(
|
| 1162 |
"batch_canceled",
|
| 1163 |
user_id=current_user.id,
|
|
|
|
| 1157 |
if user_id != current_user.id:
|
| 1158 |
abort(404)
|
| 1159 |
try:
|
| 1160 |
+
celery_app.control.revoke(batch_id, terminate=True, signal="SIGKILL")
|
| 1161 |
log_audit(
|
| 1162 |
"batch_canceled",
|
| 1163 |
user_id=current_user.id,
|
start.sh
CHANGED
|
@@ -9,7 +9,7 @@ CELERY_PID=$!
|
|
| 9 |
trap "kill $CELERY_PID; exit 0" SIGTERM SIGINT
|
| 10 |
|
| 11 |
# Run database migrations/initialization
|
| 12 |
-
flask --app app_new init-db
|
| 13 |
|
| 14 |
# Start Gunicorn in foreground
|
| 15 |
# Hugging Face Spaces expects the app to listen on port 7860
|
|
|
|
| 9 |
trap "kill $CELERY_PID; exit 0" SIGTERM SIGINT
|
| 10 |
|
| 11 |
# Run database migrations/initialization
|
| 12 |
+
flask --app app_new init-db
|
| 13 |
|
| 14 |
# Start Gunicorn in foreground
|
| 15 |
# Hugging Face Spaces expects the app to listen on port 7860
|