fix: 修复 Binance 心跳通知 + 运行时崩溃问题#84
Merged
Merged
Conversation
…ilter in heartbeat - main.py: add and that were missing after the BTC cycle indicators feature (cd4b99a), causing NameError crash in enrich_btc_snapshot_with_cycle_indicators - runtime_workflow_heartbeat.py: remove filter from both GitHub API calls so the heartbeat can detect Runtime workflow runs triggered by workflow_run (CI completion) in addition to manual workflow_dispatch Co-Authored-By: Claude <noreply@anthropic.com>
9ce6e31 to
c827234
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
Binance 平台心跳好几天没有正常通知,根因是两个问题叠加:
1. 运行时崩溃(6/29 引入)
cd4b99a新增的enrich_btc_snapshot_with_cycle_indicators函数使用了json和Path但没有 import,导致运行时NameError崩溃。2. 心跳无法检测运行时(6/27 引入)
3036c42将 Runtime workflow 的触发方式从纯workflow_dispatch改成了workflow_run(CI完成后触发),但心跳脚本的 GitHub API 查询仍然只过滤event=workflow_dispatch,导致心跳永远找不到 CI 触发的 runtime runs。修复
import json和from pathlib import Pathevent=workflow_dispatch过滤,让心跳能检测到所有事件类型(workflow_dispatch + workflow_run)的 runtime runs🤖 Generated with Claude Code