Some components (e.g., Redis, NB API, agents) must be started in a specific order to function correctly. We should formalize this order and add startup checks.
Details
We should:
- Define the correct startup order:
Redis → NB API → Agents.
- Include scripts or
wait-for-it.sh logic to block until dependencies are ready.
- Optionally log a warning or error if a component starts before its dependency.
This will make the first-time setup and deployments more reliable. This is orthogonal to a refactoring of the agent code to add discovery/reconnect logic.
Some components (e.g., Redis, NB API, agents) must be started in a specific order to function correctly. We should formalize this order and add startup checks.
Details
We should:
Redis → NB API → Agents.wait-for-it.shlogic to block until dependencies are ready.This will make the first-time setup and deployments more reliable. This is orthogonal to a refactoring of the agent code to add discovery/reconnect logic.