Revert "debug mode"
Browse filesThis reverts commit 5e39b6406f0ffdcc2449228ee507a50c47ab4608.
- App/Worker.py +1 -1
- Dockerfile +1 -1
App/Worker.py
CHANGED
@@ -12,7 +12,7 @@ celery = Celery()
|
|
12 |
celery.config_from_object(celery_config)
|
13 |
celery.conf.update(
|
14 |
# Other Celery configuration settings
|
15 |
-
CELERYD_LOG_LEVEL='
|
16 |
)
|
17 |
|
18 |
@celery.task(name="embbeding", bind=True)
|
|
|
12 |
celery.config_from_object(celery_config)
|
13 |
celery.conf.update(
|
14 |
# Other Celery configuration settings
|
15 |
+
CELERYD_LOG_LEVEL='INFO', # Set log level to DEBUG for the worker
|
16 |
)
|
17 |
|
18 |
@celery.task(name="embbeding", bind=True)
|
Dockerfile
CHANGED
@@ -22,7 +22,7 @@ USER admin
|
|
22 |
COPY --chown=admin . /srv
|
23 |
|
24 |
# Command to run the application
|
25 |
-
CMD uvicorn App.app:app --host 0.0.0.0 --port 7860 --workers 4 & celery -A App.Worker.celery worker -c 4 --loglevel=
|
26 |
|
27 |
# Expose the server port
|
28 |
EXPOSE 7860
|
|
|
22 |
COPY --chown=admin . /srv
|
23 |
|
24 |
# Command to run the application
|
25 |
+
CMD uvicorn App.app:app --host 0.0.0.0 --port 7860 --workers 4 & celery -A App.Worker.celery worker -c 4 --loglevel=info
|
26 |
|
27 |
# Expose the server port
|
28 |
EXPOSE 7860
|