-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warn on unfinished workflow handlers (#294)
Fixes #261
- Loading branch information
Showing
9 changed files
with
460 additions
and
39 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
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,27 @@ | ||
namespace Temporalio.Workflows | ||
{ | ||
/// <summary> | ||
/// Actions taken if a workflow terminates with running handlers. | ||
/// </summary> | ||
/// <remarks> | ||
/// Policy defining actions taken when a workflow exits while update or signal handlers are | ||
/// running. The workflow exit may be due to successful return, failure, cancellation, or | ||
/// continue-as-new. | ||
/// </remarks> | ||
public enum HandlerUnfinishedPolicy | ||
{ | ||
/// <summary> | ||
/// Issue a warning in addition to abandoning. | ||
/// </summary> | ||
WarnAndAbandon, | ||
|
||
/// <summary> | ||
/// Abandon the handler. | ||
/// </summary> | ||
/// <remarks> | ||
/// In the case of an update handler this means that the client will receive an error rather | ||
/// than the update result. | ||
/// </remarks> | ||
Abandon, | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.