Skip to content

Retry failed Redis script loads#6390

Open
alvarosevilla95 wants to merge 1 commit into
Effect-TS:mainfrom
alvarosevilla95:codex/retry-redis-script-load-effect
Open

Retry failed Redis script loads#6390
alvarosevilla95 wants to merge 1 commit into
Effect-TS:mainfrom
alvarosevilla95:codex/retry-redis-script-load-effect

Conversation

@alvarosevilla95

Copy link
Copy Markdown
Contributor

Summary

Redis Lua scripts are loaded through SCRIPT LOAD and cached before being invoked with EVALSHA. The script cache currently stores failed loads indefinitely, so a transient Redis failure during SCRIPT LOAD can poison a running process until the Redis service is recreated.

This changes the script cache TTL so successful script loads continue to be cached forever, while failed loads are immediately evicted and retried on the next evaluation.

@github-project-automation github-project-automation Bot moved this to Discussion Ongoing in PR Backlog Jul 14, 2026
@changeset-bot

changeset-bot Bot commented Jul 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9b307ce

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 27 packages
Name Type
effect Patch
@effect/opentelemetry Patch
@effect/platform-browser Patch
@effect/platform-bun Patch
@effect/platform-node-shared Patch
@effect/platform-node Patch
@effect/vitest Patch
@effect/ai-anthropic Patch
@effect/ai-openai-compat Patch
@effect/ai-openai Patch
@effect/ai-openrouter Patch
@effect/atom-react Patch
@effect/atom-solid Patch
@effect/atom-vue Patch
@effect/sql-clickhouse Patch
@effect/sql-d1 Patch
@effect/sql-libsql Patch
@effect/sql-mssql Patch
@effect/sql-mysql2 Patch
@effect/sql-pg Patch
@effect/sql-pglite Patch
@effect/sql-sqlite-bun Patch
@effect/sql-sqlite-do Patch
@effect/sql-sqlite-node Patch
@effect/sql-sqlite-react-native Patch
@effect/sql-sqlite-wasm Patch
@effect/openapi-generator Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@alvarosevilla95

alvarosevilla95 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

Original effect-smol PR: Effect-TS/effect-smol#2614

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.0 enhancement New feature or request

Projects

Status: Discussion Ongoing

Development

Successfully merging this pull request may close these issues.

2 participants