-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WithVersionIntent option setter & move VersionIntent to temporal pkg
- Loading branch information
1 parent
eefcffd
commit 609b90e
Showing
10 changed files
with
109 additions
and
55 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package temporal | ||
|
||
import "go.temporal.io/sdk/internal" | ||
|
||
// VersionIntent indicates whether the user intends certain commands to be run on | ||
// a compatible worker build ID version or not. | ||
type VersionIntent = internal.VersionIntent | ||
|
||
const ( | ||
// UnspecifiedVersion indicates that the SDK should choose the most sensible default behavior | ||
// for the type of command, accounting for whether the command will be run on the same task | ||
// queue as the current worker. | ||
UnspecifiedVersion = internal.UnspecifiedVersion | ||
// CompatibleVersion indicates that the command should run on a worker with compatible version | ||
// if possible. It may not be possible if the target task queue does not also have knowledge of | ||
// the current worker's build ID. | ||
CompatibleVersion = internal.CompatibleVersion | ||
// UseDefaultVersion indicates that the command should run on the target task queue's current | ||
// overall-default build ID. | ||
UseDefaultVersion = internal.UseDefaultVersion | ||
) |
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.