Uh oh!
There was an error while loading. Please reload this page.
Support reusing orchestration id - #46
Conversation
kaibocai (kaibocai)
commented
Nov 29, 2023
Draft the PR, need more tests |
Uh oh!
There was an error while loading. Please reload this page.
Chris Gillum (cgillum)
left a comment
There was a problem hiding this comment.
Happy to see the progress on this. See my comments below. I think we may want to simplify/tighten our implementation of this feature.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
kaibocai (kaibocai)
commented
Dec 1, 2023
Chris Gillum (@cgillum) , re-implemented the logic so it doesn't query existing instances at the beginning and most logic goes to backend implementation to utilize the isolation benefit provided by db transaction. The core logic is a little different from the pseudo-code we discussed at #42 (comment), but the effect is the same and more readable. I assume it still needs a lot of improvement and updates, but would like to get your opinion on the high-level implementation direction. Thanks. |
kaibocai (kaibocai)
commented
Dec 1, 2023
tagging Alessandro (Ale) Segala (@ItalyPaleAle) for helping review as well. Thank you Ale! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Chris Gillum (cgillum)
left a comment
There was a problem hiding this comment.
Some initial feedback based on reviewing the test code. I'll focus a bit more on the main code once I feel that we have the right tests in place.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Chris Gillum (cgillum)
left a comment
There was a problem hiding this comment.
Some feedback on the core design.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
2290604 to
a74c223Compare
Chris Gillum (cgillum)
left a comment
There was a problem hiding this comment.
A few more comments.
| ErrNotCompleted = errors.New("orchestration has not yet completed") | ||
| ErrNoFailures = errors.New("orchestration did not report failure details") | ||
| ErrDuplicateInstance = errors.New("orchestration instance already exists") | ||
| ErrSkipInstance = errors.New("skip creating orchestration instance") |
There was a problem hiding this comment.
Are you using VS Code with the Go extension for editing? Normally it would auto-format the code when you save to line up all the = signs.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| ErrNotCompleted = errors.New("orchestration has not yet completed") | ||
| ErrNoFailures = errors.New("orchestration did not report failure details") | ||
| ErrDuplicateInstance = errors.New("orchestration instance already exists") | ||
| ErrIgnoreInstance = errors.New("ignore creating orchestration instance") |
There was a problem hiding this comment.
Looks like there are still some issues with the whitespace here :(
| The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
| and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
| ## [v0.3.2] - 2023-12-11 |
There was a problem hiding this comment.
| ## [v0.3.2] - 2023-12-11 | |
| ## [Unreleased] |
explicitly ignore unhandled errors
This PR tries to update the logic to support reuse orchestration ID, more details can be found #42, dapr/dapr#7101
Corresponding protobuf updates can be found microsoft/durabletask-protobuf#19