Skip to content

Commit 2d74d44

Browse files
authored
update indexing and slack bot to use stdout options (#2752)
1 parent 30d17ef commit 2d74d44

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)
@@ -87,7 +88,8 @@ stopasgroup=true
8788
# More details on setup here: https://docs.danswer.dev/slack_bot_setup
8889
[program:slack_bot]
8990
command=python danswer/danswerbot/slack/listener.py
90-
environment=LOG_FILE_NAME=slack_bot
91+
stdout_logfile=/var/log/slack_bot.log
92+
stdout_logfile_maxbytes=16MB
9193
redirect_stderr=true
9294
autorestart=true
9395
startretries=5
@@ -101,8 +103,8 @@ command=tail -qF
101103
/var/log/celery_worker_primary.log
102104
/var/log/celery_worker_light.log
103105
/var/log/celery_worker_heavy.log
104-
/var/log/document_indexing_info.log
105-
/var/log/slack_bot_debug.log
106+
/var/log/document_indexing.log
107+
/var/log/slack_bot.log
106108
stdout_logfile=/dev/stdout
107109
stdout_logfile_maxbytes = 0 # must be set to 0 when stdout_logfile=/dev/stdout
108110
autorestart=true

0 commit comments

Comments
 (0)