Skip to content

emergency-power - #1

Open
allandiamante wants to merge 12 commits into
mainfrom
emergency-power
Open

emergency-power#1
allandiamante wants to merge 12 commits into
mainfrom
emergency-power

Conversation

@allandiamante

Copy link
Copy Markdown
Collaborator

Changes:

  • Changed the file structure of auxiliary functions
  • Added the module and endpoints for Frequency Restoration Reserve

@stefdegroot
stefdegroot force-pushed the main branch 3 times, most recently from 0a92f1d to 3b9a0cd Compare January 27, 2026 11:03
@allandiamante
allandiamante force-pushed the emergency-power branch 2 times, most recently from 7f5019a to e41eeee Compare January 29, 2026 03:07

@stefdegroot stefdegroot left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Some small notes, will test further later on, so I might have some more feedback.

Comment thread src/db/frr_activations.rs Outdated
Comment thread src/tennet/utils.rs
Comment thread src/sync.rs Outdated
Comment on lines +14 to +17
let _ = schedule_tasks(ScheduleGranularity::SECONDS, &[5],app_state.clone(), balance_delta_service, "balance_delta");
let _ = schedule_tasks(ScheduleGranularity::MINUTES, &[1, 16, 31, 46],app_state.clone(), merit_order_service, "merit_order");
let _ = schedule_tasks(ScheduleGranularity::SECONDS, &[5],app_state.clone(), balance_delta_service, "balance_delta"); //need change to less frequent
let _ = schedule_tasks(ScheduleGranularity::MINUTES, &[3],app_state.clone(), merit_order_service, "merit_order");
let _ = schedule_tasks(ScheduleGranularity::MINUTES, &[5],app_state.clone(), settlement_prices_service, "settlement_prices");
let _ = schedule_tasks(ScheduleGranularity::MINUTES, &[1],app_state.clone(), frr_activations_service, "frr_activations");

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Merit order updates every 15 minutes, so we fetch it one minute after the source is updated, 4 times an hour.
For the balance delta, it updates every minute, so 5 seconds past the minute we fetch the new value, 60x an hour.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

we had discussed this earlier. I ended up increasing some of the cycle timings based on my specific context. My bad, the idea was tests to overloading and try to make the sync faster.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I guess you could add 2 api keys to double the sync speed. But not sure if that is the ideal way. I would suggest users download the CSV data set and sync the bulk of the history that way. In the future I want to open up an s3 bucket of end point in our API to expose the full data set.

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