Implement valkey backend#460
Open
DerkSchooltink wants to merge 24 commits into
Open
Conversation
f20d64a to
96a6b63
Compare
Contributor
Author
|
Before I undraft this, I will attempt to run this in a private project to see if I missed anything. The queue tests should cover the majority and they seem to work fine, but there are some key differences inside Dequeue and Size that I'm not entirely sure of. |
38ef7ff to
3a48b8e
Compare
e63ccd8 to
4fafa8c
Compare
Contributor
Author
|
re-authored all commits to stop using my other git account :) |
added 22 commits
November 25, 2025 16:09
…er-mode)" This reverts commit 534b23f.
…when no instance is found in the workflow
c7c2148 to
f85e196
Compare
Contributor
Author
|
To sum up, this is basically a carbon copy of the Redis backend implementation. I've actually tested the Redis backend with a Valkey server, and it actually works as far as I can see. But obviously, guaranteeing that compatibility might not hold forever. Hence, a valkey-go SDK implementation to go alongside the Redis variant. |
Contributor
Author
|
@cschleiden could I get your eyes on this please? :) |
Blockers: - Fix CI readiness probe password (ValkeyPassw0rd, not RedisPassw0rd) - Fix GetWorkflowInstanceHistory inclusive range bound (use exclusive ( prefix) - Fix GetWorkflowInstances pagination treating score 0 as not-found - Add Test_ValkeyBackend and Test_EndToEndValkeyBackend conformance tests Suggestions: - Fix readActiveInstanceExecution to return nil,nil on valkey.Nil (not raw error) - Fix InstanceAlreadyExists detection to use strings.Contains (robust to error wrapping) - Move Lua script handles from package globals into valkeyBackend and taskQueue structs, eliminating the data race under concurrent construction - Add *slog.Logger to taskQueue; log recovered abandoned tasks at Info level - Add expire_test.go porting all three auto-expiration tests from redis backend - Update schedule_future_events.lua comment: Redis Cluster -> Valkey Cluster - Rename redisOptions to valkeyOptions in diagnostics_test.go - Add backend/valkey/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
implements #363