DefangLabs / DefangLabs/docs-chatbot

Set lazy-apps=false

Open
#89 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1
Forks
1
Avg merge
14h 50m
Merged PRs (30d)
21

Description

With lazy-apps, the first request (likely a regular user) is slow, because it causes the program to be initialized.

https://github.com/DefangLabs/docs-chatbot/blob/f0ed656976685e5d3015c9c063456b6b615052c9/app/Dockerfile#L54

With lazy-apps=false the healthcheck might not be available until ~30s later, so we need to combine this with start_period in Compose file.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at app/Dockerfile line 54 to inspect the current lazy-apps setting, then find the Compose healthcheck configuration. The change is complete when lazy-apps is disabled and the healthcheck allows roughly 30 seconds for initialization before reporting failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, python
Domain
devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.