Mbonea commited on
Commit
5e39b64
1 Parent(s): 136640b

debug mode

Browse files
Files changed (2) hide show
  1. App/Worker.py +1 -1
  2. 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='INFO', # Set log level to DEBUG for the worker
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='DEBUG', # 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=info
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=DEBUG
26
 
27
  # Expose the server port
28
  EXPOSE 7860