Skip to content

fix!: make redis a mandatory parameter of task_wrapper - #1000

Open
kjvbrt wants to merge 2 commits into
DIRACGrid:mainfrom
kjvbrt:fix/redis-mandatory-task-wrapper
Open

fix!: make redis a mandatory parameter of task_wrapper#1000
kjvbrt wants to merge 2 commits into
DIRACGrid:mainfrom
kjvbrt:fix/redis-mandatory-task-wrapper

Conversation

@kjvbrt

@kjvbrt kjvbrt commented Jul 30, 2026

Copy link
Copy Markdown

Closes #973

Makes _redis a required keyword-only parameter of task_wrapper and removes the dead None-skip branch. call_task() now always opens a real Redis connection instead of conditionally leaving it unset.

Breaking: task_wrapper (exported from diracx.tasks.plumbing) now requires _redis; callers relying on the old None default will get a TypeError.

@kjvbrt kjvbrt changed the title fix: make redis a mandatory parameter of task_wrapper fix!: make redis a mandatory parameter of task_wrapper Jul 30, 2026
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.

[diracx-tasks] redis should be a mandatory parameter of task_wrapper

1 participant