Draft
Conversation
Documentation build overview
Show files changed (6 files in total): 📝 5 modified | ➕ 1 added | ➖ 0 deleted
|
Agent-Logs-Url: https://github.com/FlexMeasures/flexmeasures/sessions/d8f1f856-844d-4274-a34b-36e33e6d8f69 Co-authored-by: joshuaunity <45713692+joshuaunity@users.noreply.github.com>
Agent-Logs-Url: https://github.com/FlexMeasures/flexmeasures/sessions/d8f1f856-844d-4274-a34b-36e33e6d8f69 Co-authored-by: joshuaunity <45713692+joshuaunity@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Move the logic behind POSTing data to job queue
Move sensor data ingestion to job queue
Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Web nodes block on large data POSTs because
save_and_enqueuerunssave_to_dbsynchronously in the request cycle. This moves the actual DB write to a dedicatedingestionRQ queue, keeping POST endpoints lightweight.Changes
ingestionqueue — added toapp.queuesalongsideforecastingandschedulingflexmeasures/data/services/data_ingestion.py(new) —add_beliefs_to_databaseis the job function: saves theBeliefsDataFrame, commits, and enqueues any downstream forecasting jobssave_and_enqueue— checks for live workers on theingestionqueue; enqueues if present, otherwise falls back to synchronous processing with a warning logged:run-worker --queuehelp text updated to includeingestionqueues.rstupdated with ingestion worker examples and a note on the fallback behaviourBehaviour notes
flexmeasures jobs run-worker --name ingester --queue ingestion