Skip to content

Commit a4f1bb9

Browse files
authored
Merge pull request onyx-dot-app#2753 from danswer-ai/hotfix/v0.7-supervisor-logs
Merge hotfix/v0.7-supervisor-logs into release/v0.7
2 parents 7f9fdbd + 5258e6e commit a4f1bb9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

backend/supervisord.conf

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ logfile=/var/log/supervisord.log
77
# Cannot place this in Celery for now because Celery must run as a single process (see note below)
88
# Indexing uses multi-processing to speed things up
99
[program:document_indexing]
10-
environment=CURRENT_PROCESS_IS_AN_INDEXING_JOB=true,LOG_FILE_NAME=document_indexing
10+
environment=CURRENT_PROCESS_IS_AN_INDEXING_JOB=true
1111
command=python danswer/background/update.py
12+
stdout_logfile=/var/log/document_indexing.log
13+
stdout_logfile_maxbytes=16MB
1214
redirect_stderr=true
1315
autorestart=true
1416

15-
1617
# Background jobs that must be run async due to long time to completion
1718
# NOTE: due to an issue with Celery + SQLAlchemy
1819
# (https://github.com/celery/celery/issues/7007#issuecomment-1740139367)
@@ -84,7 +85,8 @@ stopasgroup=true
8485
# More details on setup here: https://docs.danswer.dev/slack_bot_setup
8586
[program:slack_bot]
8687
command=python danswer/danswerbot/slack/listener.py
87-
environment=LOG_FILE_NAME=slack_bot
88+
stdout_logfile=/var/log/slack_bot.log
89+
stdout_logfile_maxbytes=16MB
8890
redirect_stderr=true
8991
autorestart=true
9092
startretries=5
@@ -98,8 +100,8 @@ command=tail -qF
98100
/var/log/celery_worker_primary.log
99101
/var/log/celery_worker_light.log
100102
/var/log/celery_worker_heavy.log
101-
/var/log/document_indexing_info.log
102-
/var/log/slack_bot_debug.log
103+
/var/log/document_indexing.log
104+
/var/log/slack_bot.log
103105
stdout_logfile=/dev/stdout
104106
stdout_logfile_maxbytes = 0 # must be set to 0 when stdout_logfile=/dev/stdout
105107
autorestart=true

0 commit comments

Comments
 (0)