Skip to content

ref: connect to Redis via ckan.lib.redis.connect_to_redis - #4

Merged
paulmueller merged 1 commit into
DCOR-dev:masterfrom
paulmueller-agent:redis-connect
Nov 5, 2026
Merged

paulmueller merged 1 commit into
DCOR-dev:masterfrom
paulmueller-agent:redis-connect

Conversation

@paulmueller-agent

Copy link
Copy Markdown

Preparation for CKAN 2.12; still works with CKAN 2.11.

RQJob imported ckan.lib.jobs._connect, which was removed in CKAN 2.12, so enqueueing DCOR background jobs would fail there. ckan.lib.redis.connect_to_redis exists in both CKAN 2.11 and 2.12.

_connect in CKAN 2.11 additionally called rq's push_connection. dcor_shared does not rely on that, because it passes the connection explicitly (Job.exists(..., connection=...)) and enqueues via toolkit.enqueue_job.

CI (CKAN 2.11): 68 tests pass in both jobs.

🤖 Generated with Claude Code

`ckan.lib.jobs._connect` was removed in CKAN 2.12.
`connect_to_redis` is available in CKAN 2.11 as well.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 96.99%. Comparing base (c19d430) to head (7e58c94).

Files with missing lines Patch % Lines
dcor_shared/rqjob.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master       #4   +/-   ##
=======================================
  Coverage   96.99%   96.99%           
=======================================
  Files          12       12           
  Lines         566      566           
=======================================
  Hits          549      549           
  Misses         17       17           
Flag Coverage Δ
develop 96.99% <75.00%> (ø)
pypi 96.99% <75.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@paulmueller
paulmueller merged commit 2ddf67d into DCOR-dev:master Nov 5, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants