Skip to content

fix(electricity): surface NordPool warnings and refresh today+tomorrow on daily run #115

Merged
sondresjolyst merged 2 commits intomainfrom
development
Apr 23, 2026
Merged

fix(electricity): surface NordPool warnings and refresh today+tomorrow on daily run #115
sondresjolyst merged 2 commits intomainfrom
development

Conversation

@sondresjolyst
Copy link
Copy Markdown
Owner

…w on daily run (#114)

  • Replace NullLogger with real ILoggerFactory logger in ElectricityPriceFetchService so NordPool parse warnings (e.g. missing JSON keys) are visible in pod logs instead of being silently dropped.
  • Add explicit guards for empty Areas and empty Values in FetchAndStoreAsync, logging a WRN instead of silently completing with 0 rows stored.
  • Log the actual count of stored entries on success for easier observability.
  • FetchDailyRefreshAsync now fetches both today and tomorrow HOURLY prices (was only tomorrow), so a single missed scheduled run no longer creates a permanent data gap for the current day.

sondresjolyst and others added 2 commits April 23, 2026 07:58
…w on daily run (#114)

* chore(main): release 2.0.2 (#105)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* chore(main): release 2.0.3 (#113)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(electricity): surface NordPool warnings and refresh today+tomorrow on daily run

- Replace NullLogger with real ILoggerFactory logger in ElectricityPriceFetchService
  so NordPool parse warnings (e.g. missing JSON keys) are visible in pod logs instead
  of being silently dropped.
- Add explicit guards for empty Areas and empty Values in FetchAndStoreAsync, logging
  a WRN instead of silently completing with 0 rows stored.
- Log the actual count of stored entries on success for easier observability.
- FetchDailyRefreshAsync now fetches both today and tomorrow HOURLY prices (was
  only tomorrow), so a single missed scheduled run no longer creates a permanent
  data gap for the current day.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@sondresjolyst sondresjolyst merged commit 8fd04f1 into main Apr 23, 2026
6 checks passed
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