From 0731750bf40d3e862944fbab2678b5d519b64323 Mon Sep 17 00:00:00 2001 From: "F.N. Claessen" Date: Mon, 26 Jan 2026 13:07:41 +0100 Subject: [PATCH 1/2] fix: add our exception handler Signed-off-by: F.N. Claessen --- flexmeasures/cli/jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flexmeasures/cli/jobs.py b/flexmeasures/cli/jobs.py index 86bb184038..f3a3b61ac4 100644 --- a/flexmeasures/cli/jobs.py +++ b/flexmeasures/cli/jobs.py @@ -67,7 +67,7 @@ def run_job(job_id: str): """ connection = app.queues["scheduling"].connection job = Job.fetch(job_id, connection=connection) - work_on_rq(app.queues["scheduling"], job) + work_on_rq(app.queues["scheduling"], exc_handler=handle_worker_exception, job=job) result = job.perform() click.echo(f"Job {job_id} finished with: {result}") From 90bde88a224901394ed90b7ca80dcca00be3085b Mon Sep 17 00:00:00 2001 From: "F.N. Claessen" Date: Mon, 26 Jan 2026 13:09:57 +0100 Subject: [PATCH 2/2] docs: changelog entry Signed-off-by: F.N. Claessen --- documentation/changelog.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/changelog.rst b/documentation/changelog.rst index 373bb21fc2..ce84ecc311 100644 --- a/documentation/changelog.rst +++ b/documentation/changelog.rst @@ -48,7 +48,7 @@ Bugfixes * Fix: flex-context dialogue is empty when flex-context has two booleans with the same value [see `PR #1907 `_] * Fixed toast notification display on the sensor detail upload form [see `PR #1921 `_] * Fix: return validation errors instead of database errors for API/CLI fields that map to database objects [see `PR #1923 `_] -* Mutate job state when running ``flexmeasures jobs run-job `` [see `PR #1929 `_] +* Mutate job state when running ``flexmeasures jobs run-job `` [see `PR #1929 `_ and `PR #1930 `_] v0.30.3 | January 12, 2026