Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backport update indexing and slack bot to use stdout options (#2752) #2755

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

rkuo-danswer
Copy link
Contributor

Description

[Provide a brief description of the changes in this PR]

How Has This Been Tested?

[Describe the tests you ran to verify your changes]

Accepted Risk

[Any know risks or failure modes to point out to reviewers]

Related Issue(s)

[If applicable, link to the issue(s) this PR addresses]

Checklist:

  • All of the automated tests pass
  • All PR comments are addressed and marked resolved
  • If there are migrations, they have been rebased to latest main
  • If there are new dependencies, they are added to the requirements
  • If there are new environment variables, they are added to all of the deployment methods
  • If there are new APIs that don't require auth, they are added to PUBLIC_ENDPOINT_SPECS
  • Docker images build and basic functionalities work
  • Author has done a final read through of the PR right before merge

Copy link

vercel bot commented Oct 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2024 1:08am

@rkuo-danswer rkuo-danswer marked this pull request as ready for review October 10, 2024 01:26
@rkuo-danswer rkuo-danswer merged commit 9d4ecf8 into release/v0.6 Oct 10, 2024
6 checks passed
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR updates the supervisord.conf file to improve log management in a Docker environment, focusing on directing logs to stdout for better containerized application practices.

  • Removed LOG_FILE_NAME environment variable from document_indexing program
  • Added stdout_logfile and stdout_logfile_maxbytes options for each program (document_indexing, celery_worker, celery_beat, slack_bot)
  • Updated log-redirect-handler to tail the new log files, ensuring all logs are properly captured and redirected to stdout
  • These changes enhance logging setup for improved performance monitoring and Docker compatibility

1 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings

@@ -31,15 +32,17 @@ command=celery -A danswer.background.celery.celery_run:celery_app worker
--loglevel=INFO
--logfile=/var/log/celery_worker_supervisor.log
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: The --logfile option for celery_worker is still present, which may conflict with the new stdout_logfile configuration.

@@ -31,15 +32,17 @@ command=celery -A danswer.background.celery.celery_run:celery_app worker
--loglevel=INFO
--logfile=/var/log/celery_worker_supervisor.log
-Q celery,vespa_metadata_sync,connector_deletion
environment=LOG_FILE_NAME=celery_worker
stdout_logfile=/var/log/celery_worker.log
stdout_logfile_maxbytes=16MB
redirect_stderr=true
autorestart=true

# Job scheduler for periodic tasks
[program:celery_beat]
command=celery -A danswer.background.celery.celery_run:celery_app beat
--logfile=/var/log/celery_beat_supervisor.log
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: The --logfile option for celery_beat is still present, which may conflict with the new stdout_logfile configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant