Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retention Module #5344

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Retention Module #5344

wants to merge 5 commits into from

Conversation

Sverre-W
Copy link

@Sverre-W Sverre-W commented May 7, 2024

I've ported the retention module from Elsa V2 to V3.

Usage is similar to before:

        elsa
            .UseRetention(options =>
            {
                options.ConfigureCleanupOptions = cleanUp =>
                {
                    cleanUp.TimeToLive = TimeSpan.FromDays(7);
                    cleanUp.SweepInterval = TimeSpan.FromHours(12);
                    cleanUp.WorkflowInstanceFilter = new WorkflowInstanceFilter
                    {
                        WorkflowStatus = WorkflowStatus.Finished
                    };
                };
            })

To be able to change the configured WorkflowInstanceFilter to add the time to live filter, I also made WorkflowInstanceFilter implement IClonable to make a deep clone of the filter.


This change is Reviewable

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.

None yet

1 participant