Skip to content

Respect expected report windows in heartbeat#145

Merged
Pigbibi merged 1 commit into
mainfrom
fix/execution-report-heartbeat-window
Jun 10, 2026
Merged

Respect expected report windows in heartbeat#145
Pigbibi merged 1 commit into
mainfrom
fix/execution-report-heartbeat-window

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add an optional RUNTIME_HEARTBEAT_EXPECTED_DAY_OF_MONTH + timezone gate for execution-report heartbeat checks
  • pass the optional heartbeat window variables through the GitHub Actions workflow
  • add focused tests for skipping outside a configured monthly window while still checking reports inside it

This is config-driven and does not hard-code HK, PAPER, or any strategy profile. The current longbridge-paper and longbridge-hk Environment variables were set to 1-7 / America/New_York because their Cloud Scheduler jobs currently use that monthly window.

Tests

  • PYTHONPATH=. python -m pytest -q tests/test_execution_report_heartbeat.py
  • python -m ruff check scripts/execution_report_heartbeat.py tests/test_execution_report_heartbeat.py
  • python -m py_compile scripts/execution_report_heartbeat.py tests/test_execution_report_heartbeat.py

@Pigbibi Pigbibi merged commit e9202f3 into main Jun 10, 2026
1 check passed
@Pigbibi Pigbibi deleted the fix/execution-report-heartbeat-window branch June 10, 2026 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant