Commit e2edc18
authored
Add more state to the pending activity state (#565)
_**READ BEFORE MERGING:** All PRs require approval by both Server AND
SDK teams before merging! This is why the number of required approvals
is "2" and not "1"--two reviewers from the same team is NOT sufficient.
If your PR is not approved by someone in BOTH teams, it may be summarily
reverted._
<!-- Describe what has changed in this PR -->
**What changed?**
Add PAUSED/PAUSE_REQUESTED states to the PendictActivityState enum.
<!-- Tell your future self why have you made these changes -->
**Why?**
To easily differentiate between "activity is paused on server and still
running on worker" and "activity is paused on server and not running on
worker". This is the result of our discussion for activity commands.
In old terms:
"state == PAUSED" is "state = SCHEDULLED and paused_flag = true"
"state == PAUSE_REQUESTED" is "state = STARTED and paused_flag = true"1 parent 4ad8563 commit e2edc18
File tree
3 files changed
+11
-2
lines changed- openapi
- temporal/api/enums/v1
3 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11608 | 11608 | | |
11609 | 11609 | | |
11610 | 11610 | | |
11611 | | - | |
| 11611 | + | |
| 11612 | + | |
| 11613 | + | |
11612 | 11614 | | |
11613 | | - | |
| 11615 | + | |
| 11616 | + | |
11614 | 11617 | | |
11615 | 11618 | | |
11616 | 11619 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8715 | 8715 | | |
8716 | 8716 | | |
8717 | 8717 | | |
| 8718 | + | |
| 8719 | + | |
8718 | 8720 | | |
8719 | 8721 | | |
8720 | 8722 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
109 | 113 | | |
110 | 114 | | |
111 | 115 | | |
| |||
0 commit comments