Skip to content

Fix lock_store crash when redis package is not installed#4943

Merged
vinibrsl merged 3 commits into
mainfrom
module-not-found-redis-fix
Mar 18, 2026
Merged

Fix lock_store crash when redis package is not installed#4943
vinibrsl merged 3 commits into
mainfrom
module-not-found-redis-fix

Conversation

@vinibrsl
Copy link
Copy Markdown
Member

REDIS_URL being set was enough to trigger a Redis lock, which would raise ImportError if the redis package wasn't available. Added _redis_available() to guard on both the env var and the import.

`REDIS_URL` being set was enough to trigger a Redis lock, which would
raise `ImportError` if the `redis` package wasn't available. Added
`_redis_available()` to guard on both the env var and the import.
Comment thread lib/crewai/tests/utilities/test_lock_store.py Fixed
Comment thread lib/crewai/tests/utilities/test_lock_store.py Fixed
Comment thread lib/crewai/tests/utilities/test_lock_store.py Dismissed
@vinibrsl vinibrsl merged commit 6b262f5 into main Mar 18, 2026
43 checks passed
@vinibrsl vinibrsl deleted the module-not-found-redis-fix branch March 18, 2026 18:05
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.

4 participants