Skip to content

Require rq below 3, on which flexmeasures jobs run-job crashes - #2860

Merged
Flix6x merged 2 commits into
mainfrom
fix/pin-rq-below-3
Nov 11, 2026
Merged

Flix6x merged 2 commits into
mainfrom
fix/pin-rq-below-3

Conversation

@Flix6x

@Flix6x Flix6x commented Nov 11, 2026

Copy link
Copy Markdown
Member

Description

FlexMeasures required rq>=2.6.1 with no upper bound, so since rq 3.0.0 came out on 2026-10-28, pip install flexmeasures gets rq 3, on which flexmeasures jobs run-job (and any plugin test calling work_on_rq) crashes:

TypeError: BaseWorker.perform_job() missing 1 required positional argument: 'execution'
  • Cap rq below 3 in pyproject.toml; uv.lock already resolves to rq 2.12.0, so only its recorded specifier changes
  • Added changelog item in documentation/changelog.rst

This is the stopgap for v1.1.1 (and v1.0.3).
#2834 stays open, for making FlexMeasures compatible with rq 3 and lifting the cap.

How to test

pip install . in a fresh venv now resolves to rq 2.x, and flexmeasures jobs run-job --job <id> runs the job.

Related to #2834.

🤖 Generated with Claude Code

rq 3 added a required execution argument to Worker.perform_job, which work_on_rq calls.
Installs from PyPI picked up rq 3; uv.lock already resolves to rq 2.12.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <felix@seita.nl>
@Flix6x Flix6x added this to the 1.1.1 milestone Nov 11, 2026
@Flix6x Flix6x added bug Something isn't working installation jobs labels Nov 11, 2026
@Flix6x Flix6x self-assigned this Nov 11, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <felix@seita.nl>
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 flexmeasures | 🛠️ Build #35809807 | 📁 Comparing 80f988e against latest (588e9b9)

  🔍 Preview build  

2 files changed
± changelog.html
± api/v3_0.html

@Flix6x
Flix6x merged commit 9152e35 into main Nov 11, 2026
11 checks passed
@Flix6x
Flix6x deleted the fix/pin-rq-below-3 branch November 11, 2026 10:36
Flix6x added a commit that referenced this pull request Nov 11, 2026
The v1.1.1 patch release backports #2855, #2861, #2838, #2829, #2851, #2845, #2859, #2850 and #2860 to the 1.1.x branch.
Move their changelog bullets out of the v1.2.0 section into a new v1.1.1 section, worded and ordered as on 1.1.x,
so the same fixes are not listed as unreleased once 1.1.1 ships.
The bullet for #2861 takes the 1.1.x wording, which adds that Python 3.10 keeps the earlier Pillow, dnspython and filelock.
The API change log needs no split: v3.0-35 holds only #2859, which ships in v1.1.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Flix6x added a commit that referenced this pull request Nov 11, 2026
…-job crashes (#2860)

(cherry picked from commit 9152e35, leaving out its changelog entry)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Flix6x added a commit that referenced this pull request Nov 11, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working installation jobs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant