mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-04-25 11:18:22 +00:00
fix(dev): exclude sandbox dirs from gateway hot-reload watcher (#1519)
* fix(dev): exclude sandbox dirs from gateway hot-reload watcher The dev-mode gateway uses --reload which watches for file changes. Sandbox containers mount the repo and write .pyc/__pycache__ during execution, triggering spurious gateway restarts mid-request. Add --reload-exclude for .pyc, __pycache__, and sandbox/ paths so only actual source changes trigger a reload. Fixes #1513 * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: JasonOA888 <JasonOA888@users.noreply.github.com> Co-authored-by: Willem Jiang <willem.jiang@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
9aa3ff7c48
commit
c5034c03c7
@ -122,7 +122,7 @@ mkdir -p logs
|
|||||||
|
|
||||||
if $DEV_MODE; then
|
if $DEV_MODE; then
|
||||||
LANGGRAPH_EXTRA_FLAGS="--no-reload"
|
LANGGRAPH_EXTRA_FLAGS="--no-reload"
|
||||||
GATEWAY_EXTRA_FLAGS="--reload --reload-include='*.yaml' --reload-include='.env'"
|
GATEWAY_EXTRA_FLAGS="--reload --reload-include='*.yaml' --reload-include='.env' --reload-exclude='*.pyc' --reload-exclude='__pycache__' --reload-exclude='sandbox/' --reload-exclude='.deer-flow/'"
|
||||||
else
|
else
|
||||||
LANGGRAPH_EXTRA_FLAGS="--no-reload"
|
LANGGRAPH_EXTRA_FLAGS="--no-reload"
|
||||||
GATEWAY_EXTRA_FLAGS=""
|
GATEWAY_EXTRA_FLAGS=""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user