fix: 修复任务生命周期与调度就绪,优化执行和构建开销 (#3069)

* fix: harden task lifecycle and scheduler readiness

* fix: confine log writes to the configured log directory

* fix: verify complete build artifacts and untracked inputs

* fix: reconcile scheduler state and make stop win startup races

* fix: isolate cron generations and serialize scheduler recovery
This commit is contained in:
whyour
2026-09-13 00:32:41 +08:00
committed by GitHub
parent d62d8f3025
commit a94e665054
61 changed files with 4214 additions and 608 deletions
+7 -1
View File
@@ -95,7 +95,13 @@ append_node_dependency_path() {
# 用户依赖目录加入 NODE_PATH,替代 symlink 到 node_modules 的方式
export NODE_PATH="${NODE_PATH:+${NODE_PATH}:}${dir_dep}"
local pnpm_global_path=$(pnpm root -g 2>/dev/null)
local pnpm_global_path
if [[ -f "$dir_shell/node_path_cache.sh" ]]; then
. "$dir_shell/node_path_cache.sh"
pnpm_global_path=$(ql_get_node_global_path) || true
else
pnpm_global_path=$(pnpm root -g 2>/dev/null) || true
fi
if [[ -n "$pnpm_global_path" ]]; then
export QL_NODE_GLOBAL_PATH="$pnpm_global_path"
export NODE_PATH="${NODE_PATH:+${NODE_PATH}:}${pnpm_global_path}"