Skip to content

Fix duplicate octopus slots#3905

Merged
springfall2008 merged 5 commits intomainfrom
fix/duplicate-octopus-slots
May 11, 2026
Merged

Fix duplicate octopus slots#3905
springfall2008 merged 5 commits intomainfrom
fix/duplicate-octopus-slots

Conversation

@springfall2008
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 11, 2026 07:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to prevent duplicate Octopus Intelligent dispatch slots (typically a completed dispatch plus a planned dispatch for the same time range) from being applied twice, which can incorrectly consume the midday-to-midday cheap-slot cap and/or duplicate rate adjustments.

Changes:

  • Add test coverage for completed+planned duplicate dispatches and cap-budget behavior.
  • Add a deduplication step when merging historical completed dispatches.
  • Add duplicate-suppression logic in rate_add_io_slots() to avoid double-applying the same slot minutes.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
apps/predbat/tests/test_rate_add_io_slots.py Adds new regression tests for duplicate dispatch suppression and cap-budget preservation.
apps/predbat/octopus.py Introduces deduplication of completed dispatches and attempts to suppress duplicate IO slots when applying rate overrides.

Comment thread apps/predbat/octopus.py Outdated
Comment thread apps/predbat/octopus.py Outdated
Comment thread apps/predbat/octopus.py
Comment thread apps/predbat/octopus.py Outdated
@springfall2008 springfall2008 merged commit 38d098e into main May 11, 2026
1 check passed
@springfall2008 springfall2008 deleted the fix/duplicate-octopus-slots branch May 11, 2026 07:50
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.

2 participants