• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

FlexMeasures / flexmeasures / 33524992793
88%

Build:
DEFAULT BRANCH: main
Ran 01 Sep 2026 03:30PM UTC
Jobs 1
Files 180
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Sep 2026 03:19PM UTC coverage: 84.339% (+0.2%) from 84.132%
33524992793

push

github

web-flow
Automations - first roundtrip for forecasts (#2290)

* feat: add Automation data model

Automations are recurring tasks (for now: computing forecasts) defined per
asset. The recurrence is defined by a cron string, and the work to be done
is defined by a data generator (linked through a data source) together with
the parameters to call it with.

Includes a migration for the new table, and new dependencies on croniter
(cron matching/validation) and cron-descriptor (natural-language recurrence
descriptions).

Part of FlexMeasures/flexmeasures#2288

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rbix8k1JfeUWNXEmHEZVpX

* feat: CLI commands to manage and run automations

- `flexmeasures add automation` creates an automation (active by default),
  validating the forecast parameters with the forecast parameter schema and
  storing the forecaster config on a data source.
- `flexmeasures edit automation` edits the name, recurrence (cron string)
  or activation status.
- `flexmeasures delete automation` deletes an automation.
- All three record their events in the asset's audit log.
- `flexmeasures jobs run-automations` queues jobs for all automations due
  this minute (to be run once per minute, e.g. via cron), with a Redis-based
  guard against duplicate runs within the same minute.

Part of FlexMeasures/flexmeasures#2288

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rbix8k1JfeUWNXEmHEZVpX

* feat: record on forecasting jobs how they were created

Data generators can now be told how their queued jobs got triggered (via the
CLI, the API or an automation), and the train-predict pipeline stores this
on the jobs as meta data. The asset's status page shows it in a new
'Created Via' column of the jobs table.

Part of FlexMeasures/flexmeasures#2288

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01... (continued)

580 of 650 new or added lines in 21 files covered. (89.23%)

17976 of 21314 relevant lines covered (84.34%)

0.84 hits per line

Uncovered Changes

Lines Coverage ∆ File
25
86.77
flexmeasures/data/services/automations.py
14
78.02
1.07% flexmeasures/cli/data_add.py
6
83.15
1.82% flexmeasures/api/v3_0/assets.py
5
88.89
-0.3% flexmeasures/data/models/data_sources.py
5
90.57
flexmeasures/data/schemas/automations.py
5
86.11
-13.89% flexmeasures/ui/utils/auth_utils.py
2
56.13
3.03% flexmeasures/cli/data_delete.py
2
73.58
2.66% flexmeasures/cli/data_edit.py
2
39.69
6.36% flexmeasures/cli/jobs.py
2
96.23
flexmeasures/data/models/automations.py
1
73.23
1.68% flexmeasures/data/queries/generic_assets.py
1
81.32
0.81% flexmeasures/data/services/sensors.py
Jobs
ID Job ID Ran Files Coverage
1 33524992793.1 01 Sep 2026 03:30PM UTC 180
84.34
GitHub Action Run
Source Files on build 33524992793
  • Tree
  • List 180
  • Changed 22
  • Source Changed 20
  • Coverage Changed 22
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #33524992793
  • 9ec1271b on github
  • Prev Build on main (#33491755628)
  • Next Build on main (#33536780945)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc