first commit
This commit is contained in:
15
clery.txt
Normal file
15
clery.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
# bir kere
|
||||
python manage.py migrate
|
||||
|
||||
# worker
|
||||
celery -A core worker -l info
|
||||
|
||||
# beat (schedule çalıştırıcı)
|
||||
celery -A core beat -l info
|
||||
|
||||
|
||||
# 1. Request gönder ve task başlat
|
||||
curl -X POST http://localhost:8000/api/v1/ml/train-model/
|
||||
|
||||
# Dönen task_id'i kopyala, sonra status sorgula:
|
||||
curl "http://localhost:8000/api/v1/ml/training-status/?task_id=<task_id>"
|
||||
Reference in New Issue
Block a user