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 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}")