-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: refresh actor configuration and state between sync attempts #21629
Merged
Merged
Changes from 23 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
c65c003
add AttemptSyncConfig, move info out of JobSyncConfig
pedroslopez 5dbea60
get build working
pedroslopez 7c82560
Merge branch 'master' into pedroslopez/attempt-sync-config
pedroslopez 5aa96b9
add db migration
pedroslopez 2bfe226
load config when building attempts
pedroslopez 6c4e0cd
persist AttemptSyncConfig
pedroslopez 0ea4e4b
it compiles
pedroslopez 8d97db0
fix job persistence test
pedroslopez 2349a44
implement submitSync with attempt config
pedroslopez de41dc6
fix TemporalClientTest
pedroslopez 74578dc
reorganizing some code
pedroslopez fbaf075
add GenerateInputActivity test
pedroslopez fef3e5d
verify AttemptSyncConfig is persisted
pedroslopez 532e8fd
add test for persistence changes
pedroslopez f31e201
add test for getAttemptByNumber
pedroslopez 6431d5c
Merge branch 'master' into pedroslopez/attempt-sync-config
pedroslopez 1411e04
use apis rather than direct db access
pedroslopez 2f2eaa3
Merge branch 'master' into pedroslopez/attempt-sync-config
pedroslopez 9ecd1b2
fix compatibility with master
pedroslopez 773d4b6
copy update
pedroslopez f5ed8de
fix tests for allowed hosts addition
pedroslopez 9dbf869
remove debug logging
pedroslopez 1541875
Merge branch 'master' into pedroslopez/attempt-sync-config
pedroslopez d339247
fix: handle when state is not set on the connection
pedroslopez b393663
Merge branch 'master' into pedroslopez/attempt-sync-config
pedroslopez 90a1d95
fix: handle unset state (on the server this time)
pedroslopez 4f4f242
Merge branch 'master' into pedroslopez/attempt-sync-config
pedroslopez 3a4034d
set state type when converting to internal representation
pedroslopez 20af23d
Merge branch 'master' into pedroslopez/attempt-sync-config
pedroslopez 8c7f55b
Merge branch 'master' into pedroslopez/attempt-sync-config
pedroslopez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made the necessary changes here because we're building a sync input, but I couldn't really find where the temporal client's submitSync method actually runs. To me it seems like in practice we're using the GenerateInputActivity to do this.
Maybe @benmoriceau knows more about why this is here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notably, this sync input is missing other recent additions, like source/destination actor IDs and allowed hosts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that it is some legacy from before we had the ConnectionManagerWorkflow was not existing.
The WorkerRun (that call that method upon creation) seems to be only useful to get the jobRoot...
This type of starting a temporal job is still useful for check connection and discover schema.