Skip to content

Fix carbon component timeout - #2818

Merged
springfall2008 merged 1 commit into
mainfrom
fixes5
Oct 24, 2025
Merged

springfall2008 merged 1 commit into
mainfrom
fixes5

Conversation

@springfall2008

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 fixes a timeout issue with the carbon component by adjusting how the component tracks its last update time. The key change is separating the concepts of "last successful data fetch" from "last timestamp checked," preventing unnecessary API calls when cached data is still valid.

  • Introduces a new last_updated_timestamp field to track when data was last fetched
  • Updates last_success_timestamp even when using cached data to prevent false timeout alerts
  • Changes status message from "(with errors)" to "(unhealthy)" for clarity

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
apps/predbat/carbon.py Adds last_updated_timestamp tracking and updates last_success_timestamp on cache hits to prevent timeout issues
apps/predbat/predbat.py Bumps version number to v8.26.4
apps/predbat/web.py Updates error message from "(with errors)" to "(unhealthy)" for improved clarity

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@springfall2008
springfall2008 merged commit 713c8c9 into main Oct 24, 2025
1 check passed
@springfall2008
springfall2008 deleted the fixes5 branch October 24, 2025 19:45
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