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

FlexMeasures / flexmeasures / 33762534289
88%

Build:
DEFAULT BRANCH: main
Ran 03 Sep 2026 01:53PM 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

03 Sep 2026 01:41PM UTC coverage: 84.449% (+0.006%) from 84.443%
33762534289

push

github

web-flow
Trigger a single automation run on demand, via CLI, API and UI (#2460)

* api: add an endpoint to trigger a single automation run

Context:
- Issue #2459: automations could only run on their own cron cadence, so trying one out, re-running it after a failure, or refreshing its results after late data arrived meant rewriting its cron string or bypassing the automation entirely.

Change:
- Add POST /assets/<id>/automations/<automation_id>/trigger, which runs one automation once, on top of its recurring runs.
- It wraps the same run_automation() the recurring runner calls, so the jobs it queues are recorded as the automation's jobs, and it leaves the cursor alone, so the recurrence is unaffected.
- Triggering requires create-children on the asset, which is what writing data under the asset means, and is what the other triggering endpoints require; it also falls under their stricter rate limit.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G9NpBEcXs6MbCAzzm1sLxG
Signed-off-by: F.N. Claessen <claessen@seita.nl>

* cli: add jobs run-automation, to run one automation on demand

Context:
- Issue #2459: the CLI could only run all due automations (jobs run-automations), not a single one now.

Change:
- Add 'flexmeasures jobs run-automation --automation <id>', which queues the jobs for one run of one automation.
- Like the API endpoint, it leaves the automation's cursor alone, so its next recurring run still happens as scheduled, and it can run an inactive automation, which is how one is tried out before activating it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G9NpBEcXs6MbCAzzm1sLxG
Signed-off-by: F.N. Claessen <claessen@seita.nl>

* ui: add a Run now button to an asset's automations page

Context:
- Issue #2459: the automations page could only show automations, not run one.

Change:
- Add a 'Run now' button per automation, which triggers a sing... (continued)

39 of 46 new or added lines in 2 files covered. (84.78%)

18056 of 21381 relevant lines covered (84.45%)

0.84 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
42.36
2.67% flexmeasures/cli/jobs.py
3
85.56
0.1% flexmeasures/api/v3_0/assets.py
Jobs
ID Job ID Ran Files Coverage
1 33762534289.1 03 Sep 2026 01:53PM UTC 180
84.45
GitHub Action Run
Source Files on build 33762534289
  • Tree
  • List 180
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #33762534289
  • 48705b5b on github
  • Prev Build on main (#33681847621)
  • Next Build on main (#33868682895)
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