Repository navigation
feat: workflow store with outbox finish (contract v0.8.0) - #25
Merged
Merged
Conversation
The workflow write holds the file mutex, so FinishTask must not take queues.mu: byID is now a copy-on-write atomic map. The folder root is resolved, so queue and store scopes agree through symlinks.
Outbox row for unreachable push targets in both layouts, queue lookup across clients of a scope, purge without a registered store (one transaction in a single file, stored intents in folders), job ID guard for wf: IDs, json-style key folding, scope checks, deps check, expired resubmit, sweep throttle.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
Summary
VarMQ workflows on SQLite. Store is its own object, found by scope (varmq #187, contract v0.8.0).
Folder layout: own file
__sqliteq_workflows.db, outbox finish:WithSingleFile: end + pushes + ack in one transaction.Also: reserved
wf:job-ID prefix for plain jobs, purge ends workflow taskscancelled(stored intent applied only after job row gone), cancel mark never drops valid workflow item, case-fold JSON keys = plain job,WithWorkflowResultLimit(64 KiB) /WithWorkflowRetention(7 d).Evidence
go build ./... && go vet ./... && go test -race -count=1 ./...pass againstcontract v0.8.0+ varmqc75ed52.compensated.Merge Danger
Door: two-way
New API, unreleased. Workflow tables created only by
NewWorkflowStore.Blast Radius: sqliteq users on upgrade
Requires
contract v0.8.0; varmq pinned to pseudo-version ofc75ed52until v1.11.0 tag.