Skip to content

feat!: remove redis_host, redis_port and redis_timeout of TaskOnKart - #734

Draft
kitagry wants to merge 2 commits into
feat/remove-wrap-run-with-lockfrom
feat/remove-redis-params
Draft

kitagry wants to merge 2 commits into
feat/remove-wrap-run-with-lockfrom
feat/remove-redis-params

Conversation

@kitagry

@kitagry kitagry commented Nov 28, 2026

Copy link
Copy Markdown
Member

Part of #685

Stacked on #733 (which is stacked on #715).

What is removed

  • The redis_host, redis_port and redis_timeout parameters of TaskOnKart, deprecated in feat: add the [gokart_lock] config for the lock backend and deprecate TaskOnKart.redis_* #646 (Move redis_host / redis_port / redis_timeout out of TaskOnKart into a dedicated lock config #628).
  • In lock_config.py, the merge of these parameters with [gokart_lock] in resolve_redis_lock_settings(), its FutureWarning, the warning for setting only one of redis_host / redis_port, and the must be set together error. The settings now come only from url and timeout of [gokart_lock].
  • The related warnings and assertion message in task.py, the tests for the old parameters, and the deprecation notes in docs/using_task_task_conflict_prevention_lock.rst and docs/efficient_run_on_multi_workers.rst.
  • The internal use_password flag (RedisLockSettings.use_password, TaskLockParams.redis_use_password, redis_connection_kwargs(use_password=...)). It only kept the GOKART_REDIS_PASSWORD password from being sent to a host given by redis_host. The password is still sent only to the host of url, since that is now the only Redis endpoint.

The internal field names of TaskLockParams (redis_host, redis_port, redis_timeout, redis_key) are kept to keep this diff small.

Migration

# Before
MyTask(redis_host='localhost', redis_port=6379, redis_timeout=180, should_lock_run=True)
# After: luigi.cfg
[gokart_lock]
url=redis://localhost:6379
timeout=180

On the command line, --redis-host=localhost --redis-port=6379 becomes --gokart-lock-url=redis://localhost:6379. redis_host / redis_port left in the [TaskOnKart] section of a config file are ignored, so move them to [gokart_lock] url.

Release note

  • Removed redis_host, redis_port and redis_timeout of TaskOnKart. Use url and timeout of the [gokart_lock] section.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CdA6RN3LDMgrAenru85SLe

kitagry and others added 2 commits December 2, 2026 16:36
They have been deprecated since #646 (#628). Use `url` and `timeout` of the [gokart_lock] section instead.

The GOKART_REDIS_PASSWORD password is now always sent to the server given by `url`; it was only held back
for a host given by the removed redis_host.

Part of #685

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CdA6RN3LDMgrAenru85SLe
…the removal

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CdA6RN3LDMgrAenru85SLe
@kitagry
kitagry force-pushed the feat/remove-redis-params branch from 14d3eb9 to 23282c4 Compare December 2, 2026 07:36
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.

1 participant