elsa-workflows / elsa-workflows/elsa-core

Allow control over when workflow instances get persisted

Open
#3,603 0 comments 0 reactions 0 assignees View on GitHub
core triaged
Dominant language
C#
Stars
7.9k
Forks
1.5k
Avg merge
15h 22m
Merged PRs (30d)
114

Description

In Elsa 2, the user can control when the workflow needs to be persisted as it executes. There are several modes:

- After every burst of execution
- After every activity

In Elsa 3, we need something similar. The user should be able to configure this behavior on the workflow definition level, but also on a more granular level. For example, some workflows don't require the instance to be saved after every step, but only at certain sections.

The easiest way would be to add an option to an activity that says e.g. "Persist", but perhaps there's an elegant solution that doen't pollute the activity with this setting (since not all workflow applications may require persistence in the first place).

This topic was raised in [this discussion](https://github.com/elsa-workflows/elsa-core/discussions/3532).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.