Skip to content

Treat no-action monthly Firstrade runs as complete#74

Merged
Pigbibi merged 1 commit into
mainfrom
codex/monthly-no-action-idempotency
Jun 5, 2026
Merged

Treat no-action monthly Firstrade runs as complete#74
Pigbibi merged 1 commit into
mainfrom
codex/monthly-no-action-idempotency

Conversation

@Pigbibi
Copy link
Copy Markdown
Contributor

@Pigbibi Pigbibi commented Jun 5, 2026

Summary

  • Treat live Firstrade NO_ACTION monthly run state as a completed idempotency state.
  • Add regression coverage so a prior NO_ACTION monthly state skips later live runs in the same period.

Why

Monthly snapshot strategies can legitimately complete with no orders. That result should stop later scheduled invocations from re-evaluating as if the month were unfinished.

Validation

  • PYTHONPATH=.:/home/ubuntu/Projects/QuantPlatformKit/src:/home/ubuntu/Projects/UsEquityStrategies/src /tmp/qsl-pytest-venv/bin/python -m pytest -q tests/test_rebalance_service.py::test_run_strategy_cycle_skips_duplicate_live_monthly_run tests/test_rebalance_service.py::test_run_strategy_cycle_skips_duplicate_live_monthly_no_action

@Pigbibi Pigbibi merged commit 1d9d777 into main Jun 5, 2026
1 check passed
@Pigbibi Pigbibi deleted the codex/monthly-no-action-idempotency branch June 5, 2026 01:40
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