Repository navigation
feat: allow RQ 3 - #155
Merged
Merged
feat: allow RQ 3#155
Conversation
RQ 3.0.0 was released on 2026-10-28. The collector works unchanged with it; the only difference in the RQ tests is that Job.key_for() returns a str instead of bytes, so the busy-jobs test now builds the expected keys with Job.key_for().
Lock RQ 3 so CI runs the tests against it, and add a CI step that also runs them against RQ 2. Move the Flask RQ sample app to RQ 3, and update the collector comments about which RQ versions store what. Amp-Thread-ID: https://ampcode.com/threads/T-01a23198-b2c3-750b-8c0f-f8ec8119c047 Co-authored-by: Adam McCrea <[email protected]>
Member
|
Thanks! |
adamlogic
pushed a commit
that referenced
this pull request
Dec 1, 2026
🤖 I have created a release *beep* *boop* --- ## [1.18.0](v1.17.0...v1.18.0) (2026-12-01) ### Features * allow RQ 3 ([#155](#155)) ([2ef9d09](2ef9d09)) * ignore queue time for requests with large bodies ([#157](#157)) ([a00afd7](a00afd7)) ### Documentation * correct the default log level in the README ([#156](#156)) ([77bc5bd](77bc5bd)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RQ 3.0.0 came out on 2026-10-28, and the
rqextra caps it at<3.0.0, sojudoscale[rq]can't be installed next to it.This raises the cap to
<4.0.0.poetry.lockonly changes itscontent-hash(Poetry 1.8.4,poetry lock --no-update), so CI still runs against the locked RQ 2.The collector itself works unchanged on RQ 3. The one test difference is that
Job.key_for()now returns astrinstead ofbytes, sotest_collect_with_busy_job_trackingbuilds the expectedstarted_atkeys withJob.key_for(). That passes on both versions.Checked:
poetry run pytest: 234 passed with the locked RQ 2.3.3, and 234 passed afterpip install "rq==3.*". Before the test change, 3 busy-job test cases failed on RQ 3 (the str/bytes key comparison only).rq workerand one running job plus one queued job.RQMetricsCollector.collect()gives the same metrics on RQ 2.12.0 and 3.0.0 (busy 1,bt≈ 5.8 s,qt,qd 1). Therq:wip:<queue>entries keep the<job_id>:<execution_id>format, andstarted_atis still saved on the job hash.