Add purge support for in-memory persistence #1413
Draft
+91
−2
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.
Describe the change
Long-running hosts using the in-memory persistence provider retain terminated workflows indefinitely, leading to accumulating instance history. This adds purge support so terminal workflows can be cleared from memory as expected.
Describe your implementation or design
IWorkflowPurgeraligned with existing provider patterns.Tests
Not run (requires .NET 6 runtime for net6.0 targets in this environment).
Breaking change
No.
Additional context
None.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
www.example.com/opt/oracle/product/26ai/dbhomeFree/bin/oracle oracleFREE (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq))) --bundle /run/containerd/io.containerd.runtime.v2.task/moby/6509a570663d48122afa393102abb172.17.0.4 --pid-file /run/containerd/io.containerd.runtime.v2.task/moby/6509a570663d48122afa393102abb1521 6509a570663d48122afa393102abb66444aa9f52d78a6b18172be33803ad2e6b ep/bin/linux-x64/rg(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.