Skip to content

Commit f63c693

Browse files
authored
Fix/single job exception handler (#1930)
* fix: add our exception handler Signed-off-by: F.N. Claessen <felix@seita.nl> * docs: changelog entry Signed-off-by: F.N. Claessen <felix@seita.nl> --------- Signed-off-by: F.N. Claessen <felix@seita.nl>
1 parent 0c78ee5 commit f63c693

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

documentation/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Bugfixes
4848
* Fix: flex-context dialogue is empty when flex-context has two booleans with the same value [see `PR #1907 <https://www.github.com/FlexMeasures/flexmeasures/pull/1907>`_]
4949
* Fixed toast notification display on the sensor detail upload form [see `PR #1921 <https://www.github.com/FlexMeasures/flexmeasures/pull/1921>`_]
5050
* Fix: return validation errors instead of database errors for API/CLI fields that map to database objects [see `PR #1923 <https://www.github.com/FlexMeasures/flexmeasures/pull/1923>`_]
51-
* Mutate job state when running ``flexmeasures jobs run-job <job ID>`` [see `PR #1929 <https://www.github.com/FlexMeasures/flexmeasures/pull/1929>`_]
51+
* Mutate job state when running ``flexmeasures jobs run-job <job ID>`` [see `PR #1929 <https://www.github.com/FlexMeasures/flexmeasures/pull/1929>`_ and `PR #1930 <https://www.github.com/FlexMeasures/flexmeasures/pull/1930>`_]
5252

5353

5454
v0.30.3 | January 12, 2026

flexmeasures/cli/jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def run_job(job_id: str):
6767
"""
6868
connection = app.queues["scheduling"].connection
6969
job = Job.fetch(job_id, connection=connection)
70-
work_on_rq(app.queues["scheduling"], job)
70+
work_on_rq(app.queues["scheduling"], exc_handler=handle_worker_exception, job=job)
7171
result = job.perform()
7272
click.echo(f"Job {job_id} finished with: {result}")
7373

0 commit comments

Comments
 (0)