forked from elsa-workflows/elsa-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enables the workflow to execute without suspending
- Loading branch information
1 parent
a781463
commit 3be2e12
Showing
2 changed files
with
69 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
24 changes: 24 additions & 0 deletions
24
src/modules/Elsa.Scheduling/Models/DelayBlockingStrategy.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Elsa.Scheduling.Activities; | ||
|
||
namespace Elsa.Scheduling.Models; | ||
|
||
/// <summary> | ||
/// Represents an execution mode for <see cref="Delay"/>. | ||
/// </summary> | ||
public enum DelayBlockingStrategy | ||
{ | ||
/// <summary> | ||
/// Do not suspend the workflow, but instead wait | ||
/// </summary> | ||
NonBlocking, | ||
|
||
/// <summary> | ||
/// Suspend the workflow and schedule a background timer to resume the workflow. | ||
/// </summary> | ||
Blocking, | ||
|
||
/// <summary> | ||
/// If the delay is less than a configurable amount of time, behaves as <see cref="Blocking"/>, otherwise as <see cref="NonBlocking"/>. | ||
/// </summary> | ||
Auto | ||
} |