Skip to content

Commit b4ed855

Browse files
meme-dayoclaude
andcommitted
fix: 予算スナップショットの過剰生成を防止(latest.jsonのみ上書き、監視期間を1日に短縮)
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 10d6640 commit b4ed855

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Agent-shared/budget/budget_tracker.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,8 @@ def generate_report(self, as_of: datetime = None) -> Dict:
242242
'jobs': jobs,
243243
'timeline': [(t.isoformat(), p) for t, p in timeline]
244244
}
245-
246-
with open(snapshot_dir / f'budget_{timestamp}.json', 'w') as f:
247-
json.dump(report_full, f, indent=2, default=str)
248-
245+
246+
# latest.jsonのみ上書き(タイムスタンプ付きファイルは生成しない)
249247
with open(snapshot_dir / 'latest.json', 'w') as f:
250248
json.dump(report_full, f, indent=2, default=str)
251249

telemetry/periodic_monitor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ CONFIG_FILE="$PROJECT_ROOT/Agent-shared/periodic_monitor_config.txt"
4242
# デフォルト値
4343
DEFAULT_UPDATE_INTERVAL_SEC=30 # 30秒(上書き更新頻度)
4444
DEFAULT_MILESTONE_INTERVAL_MIN=30 # 30分(マイルストーン確認間隔)
45-
DEFAULT_MAX_RUNTIME_MIN=4320 # 4320分(3日)= 24 * 60 * 3
45+
DEFAULT_MAX_RUNTIME_MIN=1440 # 1440分(1日)= 24 * 60
4646
DEFAULT_BUDGET_INTERVAL_MIN=3 # 3分(予算集計間隔)
4747
DEFAULT_SOTA_INTERVAL_MIN=15 # 15分(SOTA可視化間隔)
4848

0 commit comments

Comments
 (0)