Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update parent clock on child workflow during child workflow's first w…
…orkflow task NOTE this is a bug fix for rare event, which will only underload & shard movement when parent start child: case 1: child not created, to be created 1. parent start child & send parent’s clock, child record parent clock for step 4 || 5 2. start child resp will contain the child’s clock 3. child’s clock will be recorded by parent 4. parent schedule child’s 1st workflow task with child's clock (step 3, for consistency check) case 2: child created & need to schedule the first workflow task for child: 5. parent schedule child’s 1st workflow task with child’s clock (step 3, for consistency check) child respond back to parent when finished: 6. child will only be able to run after parent record start child success, then schedule first workflow task (see above 3 && (4 || 5)) 7. when child respond finish, child need to include parent clock for parent shard consistency check before this PR, step 7 will use parent clock from step 1, which does not guarantee parent has reached step 3 (if shard moves && stale cache) with this PR, step 4 || 5 will let child update child's view of parent clock.
- Loading branch information
Showing
10 changed files
with
544 additions
and
400 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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